Rev 534 | Rev 792 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 534 | Rev 538 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | */ |
27 | */ |
| 28 | 28 | ||
| 29 | #include <arch/mm/frame.h> |
29 | #include <arch/mm/frame.h> |
| 30 | #include <mm/frame.h> |
30 | #include <mm/frame.h> |
| 31 | #include <config.h> |
31 | #include <config.h> |
| 32 | #include <panic.h> |
- | |
| 33 | 32 | ||
| 34 | void frame_arch_init(void) |
33 | void frame_arch_init(void) |
| 35 | { |
34 | { |
| 36 | zone_t *z; |
- | |
| 37 | - | ||
| 38 | z = zone_create(0, config.memory_size, 0); |
35 | zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE - 1)); |
| 39 | if (!z) { |
- | |
| 40 | panic("Can't allocate zone (%dB).\n", config.memory_size); |
- | |
| 41 | } |
- | |
| 42 | zone_attach(z); |
- | |
| 43 | } |
36 | } |