Rev 823 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 823 | Rev 900 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | void frame_arch_init(void) |
41 | void frame_arch_init(void) |
42 | { |
42 | { |
43 | zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0); |
43 | zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0); |
44 | 44 | ||
45 | /* |
45 | /* |
46 | * Workaround to prevent slab allocator from allocating frame 0. |
- | |
47 | * Remove the following statement when the kernel is no longer |
- | |
48 | * identity mapped. |
- | |
49 | */ |
- | |
50 | frame_mark_unavailable(0, 1); |
- | |
51 | - | ||
52 | /* |
- | |
53 | * Blacklist ROM regions. |
46 | * Blacklist ROM regions. |
54 | */ |
47 | */ |
55 | frame_mark_unavailable(ADDR2PFN(ROM_BASE), ROM_SIZE >> FRAME_WIDTH); |
48 | frame_mark_unavailable(ADDR2PFN(ROM_BASE), ROM_SIZE >> FRAME_WIDTH); |
56 | } |
49 | } |