Rev 532 | Rev 534 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 532 | Rev 533 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | #include <config.h> |
31 | #include <config.h> |
32 | #include <panic.h> |
32 | #include <panic.h> |
33 | 33 | ||
34 | void frame_arch_init(void) |
34 | void frame_arch_init(void) |
35 | { |
35 | { |
36 | zone_t *z; |
- | |
37 | - | ||
38 | z = zone_create(0, config.memory_size, 0); |
36 | 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 | } |
37 | } |