Rev 4026 | Rev 4042 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4026 | Rev 4031 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | #include <smp/ipi.h> |
60 | #include <smp/ipi.h> |
61 | #include <arch/atomic.h> |
61 | #include <arch/atomic.h> |
62 | #include <panic.h> |
62 | #include <panic.h> |
63 | #include <print.h> |
63 | #include <print.h> |
64 | #include <sysinfo/sysinfo.h> |
64 | #include <sysinfo/sysinfo.h> |
- | 65 | #include <string.h> |
|
65 | 66 | ||
66 | /* NS16550 as a COM 1 */ |
67 | /* NS16550 as a COM 1 */ |
67 | #define NS16550_IRQ (4 + LEGACY_INTERRUPT_BASE) |
68 | #define NS16550_IRQ (4 + LEGACY_INTERRUPT_BASE) |
68 | 69 | ||
69 | bootinfo_t *bootinfo; |
70 | bootinfo_t *bootinfo; |
Line 82... | Line 83... | ||
82 | for (i = 0; i < init.cnt; i++) { |
83 | for (i = 0; i < init.cnt; i++) { |
83 | init.tasks[i].addr = |
84 | init.tasks[i].addr = |
84 | ((unsigned long) bootinfo->taskmap.tasks[i].addr) | |
85 | ((unsigned long) bootinfo->taskmap.tasks[i].addr) | |
85 | VRN_MASK; |
86 | VRN_MASK; |
86 | init.tasks[i].size = bootinfo->taskmap.tasks[i].size; |
87 | init.tasks[i].size = bootinfo->taskmap.tasks[i].size; |
- | 88 | strncpy(init.tasks[i].name, bootinfo->taskmap.tasks[i].name, |
|
- | 89 | CONFIG_TASK_NAME_BUFLEN); |
|
87 | } |
90 | } |
88 | } |
91 | } |
89 | 92 | ||
90 | void arch_pre_mm_init(void) |
93 | void arch_pre_mm_init(void) |
91 | { |
94 | { |