Rev 820 | Rev 823 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 820 | Rev 821 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | #include <config.h> |
31 | #include <config.h> |
32 | #include <align.h> |
32 | #include <align.h> |
33 | 33 | ||
34 | void frame_arch_init(void) |
34 | void frame_arch_init(void) |
35 | { |
35 | { |
36 | zone_create(0, config.memory_size >> FRAME_WIDTH, ADDR2PFN(ALIGN_UP(config.base + config.kernel_size + CONFIG_STACK_SIZE, FRAME_SIZE)), 0); |
36 | zone_create(0, config.memory_size >> FRAME_WIDTH, ADDR2PFN(ALIGN_UP(config.base + config.kernel_size, FRAME_SIZE)), 0); |
37 | 37 | ||
38 | /* |
38 | /* |
39 | * Workaround to prevent slab allocator from allocating frame 0. |
39 | * Workaround to prevent slab allocator from allocating frame 0. |
40 | * Frame 0 is |
40 | * Frame 0 is |
41 | * a) not mapped by OFW |
41 | * a) not mapped by OFW |