Rev 1881 | Rev 1895 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1881 | Rev 1894 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | 49 | ||
50 | bootinfo_t bootinfo; |
50 | bootinfo_t bootinfo; |
51 | 51 | ||
52 | void arch_pre_main(void) |
52 | void arch_pre_main(void) |
53 | { |
53 | { |
54 | /* Setup usermode */ |
54 | /* Copy init task info. */ |
55 | init.cnt = bootinfo.taskmap.count; |
55 | init.cnt = bootinfo.taskmap.count; |
56 | 56 | ||
57 | uint32_t i; |
57 | uint32_t i; |
58 | 58 | ||
59 | for (i = 0; i < bootinfo.taskmap.count; i++) { |
59 | for (i = 0; i < bootinfo.taskmap.count; i++) { |
60 | init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr); |
60 | init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr); |
61 | init.tasks[i].size = bootinfo.taskmap.tasks[i].size; |
61 | init.tasks[i].size = bootinfo.taskmap.tasks[i].size; |
62 | } |
62 | } |
- | 63 | ||
- | 64 | /* Copy boot allocations info. */ |
|
- | 65 | ballocs.base = bootinfo.ballocs.base; |
|
- | 66 | ballocs.size = bootinfo.ballocs.size; |
|
63 | } |
67 | } |
64 | 68 | ||
65 | void arch_pre_mm_init(void) |
69 | void arch_pre_mm_init(void) |
66 | { |
70 | { |
67 | trap_init(); |
71 | trap_init(); |