Rev 4156 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4156 | Rev 4296 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | init.cnt = bootinfo->cnt; |
60 | init.cnt = bootinfo->cnt; |
61 | 61 | ||
62 | for (i = 0; i < min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); ++i) { |
62 | for (i = 0; i < min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); ++i) { |
63 | init.tasks[i].addr = bootinfo->tasks[i].addr; |
63 | init.tasks[i].addr = bootinfo->tasks[i].addr; |
64 | init.tasks[i].size = bootinfo->tasks[i].size; |
64 | init.tasks[i].size = bootinfo->tasks[i].size; |
65 | strncpy(init.tasks[i].name, bootinfo->tasks[i].name, |
65 | str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN, |
66 | CONFIG_TASK_NAME_BUFLEN); |
66 | bootinfo->tasks[i].name); |
67 | } |
67 | } |
68 | } |
68 | } |
69 | 69 | ||
70 | /** Performs arm32 specific initialization before mm is initialized. */ |
70 | /** Performs arm32 specific initialization before mm is initialized. */ |
71 | void arch_pre_mm_init(void) |
71 | void arch_pre_mm_init(void) |
Line 126... | Line 126... | ||
126 | */ |
126 | */ |
127 | void arch_post_smp_init(void) |
127 | void arch_post_smp_init(void) |
128 | { |
128 | { |
129 | #ifdef CONFIG_ARM_KBD |
129 | #ifdef CONFIG_ARM_KBD |
130 | /* |
130 | /* |
131 | * Initialize the msim/GXemul keyboard port. Then initialize the serial line |
131 | * Initialize the GXemul keyboard port. Then initialize the serial line |
132 | * module and connect it to the msim/GXemul keyboard. Enable keyboard interrupts. |
132 | * module and connect it to the GXemul keyboard. Enable keyboard interrupts. |
133 | */ |
133 | */ |
134 | indev_t *kbrdin = dsrlnin_init((dsrlnin_t *) gxemul_kbd, GXEMUL_KBD_IRQ); |
134 | indev_t *kbrdin = dsrlnin_init((dsrlnin_t *) gxemul_kbd, GXEMUL_KBD_IRQ); |
135 | if (kbrdin) |
135 | if (kbrdin) |
136 | srln_init(kbrdin); |
136 | srln_init(kbrdin); |
137 | 137 |