Rev 538 | Rev 793 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 538 | Rev 792 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | #include <mm/frame.h> |
30 | #include <mm/frame.h> |
31 | #include <config.h> |
31 | #include <config.h> |
32 | 32 | ||
33 | void frame_arch_init(void) |
33 | void frame_arch_init(void) |
34 | { |
34 | { |
- | 35 | /* |
|
- | 36 | * Workaround to prevent slab allocator from allocating fram 0, |
|
- | 37 | * which is not, at that time, mapped. |
|
- | 38 | */ |
|
- | 39 | frame_region_not_free(0, FRAME_SIZE); |
|
- | 40 | ||
35 | zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE - 1)); |
41 | zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE - 1)); |
36 | } |
42 | } |