Rev 2410 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2410 | Rev 2415 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #include <mm/frame.h> |
36 | #include <mm/frame.h> |
37 | #include <arch/mm/frame.h> |
37 | #include <arch/mm/frame.h> |
38 | #include <config.h> |
38 | #include <config.h> |
39 | #include <arch/debug/print.h> |
39 | #include <arch/debug/print.h> |
40 | 40 | ||
- | 41 | /** Address of the last frame in the memory. */ |
|
41 | uintptr_t last_frame = 0; |
42 | uintptr_t last_frame = 0; |
42 | 43 | ||
43 | /** Create memory zones. */ |
44 | /** Creates memory zones. */ |
44 | void frame_arch_init(void) |
45 | void frame_arch_init(void) |
45 | { |
46 | { |
46 | // all memory as one zone |
47 | // all memory as one zone |
47 | zone_create(0, ADDR2PFN(config.memory_size), |
48 | zone_create(0, ADDR2PFN(config.memory_size), |
48 | BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0); |
49 | BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0); |