Rev 341 | Rev 501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 341 | Rev 368 | ||
---|---|---|---|
Line 28... | Line 28... | ||
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 <arch/asm/boot.h> |
31 | #include <arch/asm/boot.h> |
32 | #include <arch/mm/page.h> |
32 | #include <arch/mm/page.h> |
- | 33 | #include <config.h> |
|
- | 34 | #include <panic.h> |
|
33 | 35 | ||
34 | void frame_arch_init(void) |
36 | void frame_arch_init(void) |
35 | { |
37 | { |
- | 38 | zone_t *z; |
|
- | 39 | ||
- | 40 | z = zone_create(0, config.memory_size, 0); |
|
- | 41 | if (!z) { |
|
- | 42 | panic("Can't allocate zone (%dB).\n", config.memory_size); |
|
- | 43 | } |
|
- | 44 | zone_attach(z); |
|
- | 45 | ||
36 | /* Disable Everything until load address */ |
46 | /* Disable Everything until load address */ |
37 | frame_region_not_free(0, KA2PA(KERNEL_LOAD_ADDRESS)); |
47 | frame_region_not_free(0, KA2PA(KERNEL_LOAD_ADDRESS)); |
38 | } |
48 | } |