Rev 1894 | Rev 1899 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1894 | Rev 1895 | ||
|---|---|---|---|
| Line 43... | Line 43... | ||
| 43 | #include <arch/boot/boot.h> |
43 | #include <arch/boot/boot.h> |
| 44 | #include <arch/arch.h> |
44 | #include <arch/arch.h> |
| 45 | #include <arch/asm.h> |
45 | #include <arch/asm.h> |
| 46 | #include <arch/mm/page.h> |
46 | #include <arch/mm/page.h> |
| 47 | #include <arch/stack.h> |
47 | #include <arch/stack.h> |
| - | 48 | #include <genarch/ofw/ofw_tree.h> |
|
| 48 | #include <userspace.h> |
49 | #include <userspace.h> |
| 49 | 50 | ||
| 50 | bootinfo_t bootinfo; |
51 | bootinfo_t bootinfo; |
| 51 | 52 | ||
| 52 | void arch_pre_main(void) |
53 | void arch_pre_main(void) |
| Line 62... | Line 63... | ||
| 62 | } |
63 | } |
| 63 | 64 | ||
| 64 | /* Copy boot allocations info. */ |
65 | /* Copy boot allocations info. */ |
| 65 | ballocs.base = bootinfo.ballocs.base; |
66 | ballocs.base = bootinfo.ballocs.base; |
| 66 | ballocs.size = bootinfo.ballocs.size; |
67 | ballocs.size = bootinfo.ballocs.size; |
| - | 68 | ||
| - | 69 | ofw_tree_init(bootinfo.ofw_root); |
|
| 67 | } |
70 | } |
| 68 | 71 | ||
| 69 | void arch_pre_mm_init(void) |
72 | void arch_pre_mm_init(void) |
| 70 | { |
73 | { |
| 71 | trap_init(); |
74 | trap_init(); |