Rev 4343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4343 | Rev 4344 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <align.h> |
38 | #include <align.h> |
39 | #include <macros.h> |
39 | #include <macros.h> |
40 | #include <print.h> |
40 | #include <print.h> |
41 | 41 | ||
42 | uintptr_t last_frame = 0; |
42 | uintptr_t last_frame = 0; |
43 | uintptr_t end_frame = 0; |
- | |
44 | 43 | ||
45 | void physmem_print(void) |
44 | void physmem_print(void) |
46 | { |
45 | { |
47 | unsigned int i; |
46 | unsigned int i; |
48 | 47 | ||
Line 74... | Line 73... | ||
74 | zone_create(start, size, conf, 0); |
73 | zone_create(start, size, conf, 0); |
75 | if (last_frame < ALIGN_UP(bootinfo.memmap.zones[i].start + bootinfo.memmap.zones[i].size, FRAME_SIZE)) |
74 | if (last_frame < ALIGN_UP(bootinfo.memmap.zones[i].start + bootinfo.memmap.zones[i].size, FRAME_SIZE)) |
76 | last_frame = ALIGN_UP(bootinfo.memmap.zones[i].start + bootinfo.memmap.zones[i].size, FRAME_SIZE); |
75 | last_frame = ALIGN_UP(bootinfo.memmap.zones[i].start + bootinfo.memmap.zones[i].size, FRAME_SIZE); |
77 | } |
76 | } |
78 | 77 | ||
79 | end_frame = last_frame; |
- | |
80 | - | ||
81 | /* First is exception vector, second is 'implementation specific', |
78 | /* First is exception vector, second is 'implementation specific', |
82 | third and fourth is reserved, other contain real mode code */ |
79 | third and fourth is reserved, other contain real mode code */ |
83 | frame_mark_unavailable(0, 8); |
80 | frame_mark_unavailable(0, 8); |
84 | 81 | ||
85 | /* Mark the Page Hash Table frames as unavailable */ |
82 | /* Mark the Page Hash Table frames as unavailable */ |