Rev 4023 | Rev 4042 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4023 | Rev 4032 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | #include <arch/mm/page.h> |
45 | #include <arch/mm/page.h> |
46 | #include <arch/stack.h> |
46 | #include <arch/stack.h> |
47 | #include <genarch/ofw/ofw_tree.h> |
47 | #include <genarch/ofw/ofw_tree.h> |
48 | #include <userspace.h> |
48 | #include <userspace.h> |
49 | #include <ddi/irq.h> |
49 | #include <ddi/irq.h> |
- | 50 | #include <string.h> |
|
50 | 51 | ||
51 | bootinfo_t bootinfo; |
52 | bootinfo_t bootinfo; |
52 | 53 | ||
53 | /** Perform sparc64-specific initialization before main_bsp() is called. */ |
54 | /** Perform sparc64-specific initialization before main_bsp() is called. */ |
54 | void arch_pre_main(void) |
55 | void arch_pre_main(void) |
Line 59... | Line 60... | ||
59 | uint32_t i; |
60 | uint32_t i; |
60 | 61 | ||
61 | for (i = 0; i < bootinfo.taskmap.count; i++) { |
62 | for (i = 0; i < bootinfo.taskmap.count; i++) { |
62 | init.tasks[i].addr = (uintptr_t) bootinfo.taskmap.tasks[i].addr; |
63 | init.tasks[i].addr = (uintptr_t) bootinfo.taskmap.tasks[i].addr; |
63 | init.tasks[i].size = bootinfo.taskmap.tasks[i].size; |
64 | init.tasks[i].size = bootinfo.taskmap.tasks[i].size; |
- | 65 | strncpy(init.tasks[i].name, bootinfo.taskmap.tasks[i].name, |
|
- | 66 | CONFIG_TASK_NAME_BUFLEN); |
|
64 | } |
67 | } |
65 | 68 | ||
66 | /* Copy boot allocations info. */ |
69 | /* Copy boot allocations info. */ |
67 | ballocs.base = bootinfo.ballocs.base; |
70 | ballocs.base = bootinfo.ballocs.base; |
68 | ballocs.size = bootinfo.ballocs.size; |
71 | ballocs.size = bootinfo.ballocs.size; |