Rev 758 | Rev 815 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 758 | Rev 813 | ||
|---|---|---|---|
| Line 39... | Line 39... | ||
| 39 | #define ROM_SIZE (384*1024) |
39 | #define ROM_SIZE (384*1024) |
| 40 | 40 | ||
| 41 | void frame_arch_init(void) |
41 | void frame_arch_init(void) |
| 42 | { |
42 | { |
| 43 | /* |
43 | /* |
| - | 44 | * Workaround to prevent slab allocator from allocating frame 0. |
|
| - | 45 | * Remove the following statement when the kernel is no longer |
|
| - | 46 | * identity mapped. |
|
| - | 47 | */ |
|
| - | 48 | frame_region_not_free(0, FRAME_SIZE); |
|
| - | 49 | ||
| - | 50 | /* |
|
| 44 | * Blacklist ROM regions. |
51 | * Blacklist ROM regions. |
| 45 | */ |
52 | */ |
| 46 | frame_region_not_free(ROM_BASE, ROM_SIZE); |
53 | frame_region_not_free(ROM_BASE, ROM_SIZE); |
| 47 | 54 | ||
| 48 | zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE-1)); |
55 | zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE-1)); |