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