Rev 1730 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1730 | Rev 1780 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include <arch/mm/memory_init.h> |
37 | #include <arch/mm/memory_init.h> |
38 | #include <mm/frame.h> |
38 | #include <mm/frame.h> |
39 | #include <align.h> |
39 | #include <align.h> |
40 | #include <macros.h> |
40 | #include <macros.h> |
41 | 41 | ||
42 | __address last_frame = 0; |
42 | uintptr_t last_frame = 0; |
43 | 43 | ||
44 | void frame_arch_init(void) |
44 | void frame_arch_init(void) |
45 | { |
45 | { |
46 | pfn_t minconf = 2; |
46 | pfn_t minconf = 2; |
47 | count_t i; |
47 | count_t i; |
Line 65... | Line 65... | ||
65 | /* First is exception vector, second is 'implementation specific', |
65 | /* First is exception vector, second is 'implementation specific', |
66 | third and fourth is reserved, other contain real mode code */ |
66 | third and fourth is reserved, other contain real mode code */ |
67 | frame_mark_unavailable(0, 8); |
67 | frame_mark_unavailable(0, 8); |
68 | 68 | ||
69 | /* Mark the Page Hash Table frames as unavailable */ |
69 | /* Mark the Page Hash Table frames as unavailable */ |
70 | __u32 sdr1; |
70 | uint32_t sdr1; |
71 | asm volatile ( |
71 | asm volatile ( |
72 | "mfsdr1 %0\n" |
72 | "mfsdr1 %0\n" |
73 | : "=r" (sdr1) |
73 | : "=r" (sdr1) |
74 | ); |
74 | ); |
75 | frame_mark_unavailable(ADDR2PFN(sdr1 & 0xffff000), 16); // FIXME |
75 | frame_mark_unavailable(ADDR2PFN(sdr1 & 0xffff000), 16); // FIXME |