Rev 4043 | Rev 4103 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4043 | Rev 4060 | ||
|---|---|---|---|
| Line 128... | Line 128... | ||
| 128 | srlz_d(); |
128 | srlz_d(); |
| 129 | } |
129 | } |
| 130 | 130 | ||
| 131 | } |
131 | } |
| 132 | 132 | ||
| 133 | - | ||
| 134 | void arch_post_mm_init(void) |
133 | void arch_post_mm_init(void) |
| 135 | { |
134 | { |
| 136 | if (config.cpu_active == 1) { |
135 | if (config.cpu_active == 1) { |
| 137 | iosapic_init(); |
136 | iosapic_init(); |
| 138 | irq_init(INR_COUNT, INR_COUNT); |
137 | irq_init(INR_COUNT, INR_COUNT); |
| 139 | #ifdef SKI |
- | |
| 140 | ski_init_console(); |
- | |
| 141 | #else |
- | |
| 142 | ega_init(EGA_BASE, EGA_VIDEORAM); |
- | |
| 143 | #endif |
- | |
| 144 | } |
138 | } |
| 145 | it_init(); |
139 | it_init(); |
| 146 | - | ||
| 147 | } |
140 | } |
| 148 | 141 | ||
| 149 | void arch_post_cpu_init(void) |
142 | void arch_post_cpu_init(void) |
| 150 | { |
143 | { |
| 151 | } |
144 | } |
| Line 154... | Line 147... | ||
| 154 | { |
147 | { |
| 155 | } |
148 | } |
| 156 | 149 | ||
| 157 | void arch_post_smp_init(void) |
150 | void arch_post_smp_init(void) |
| 158 | { |
151 | { |
| 159 | /* |
- | |
| 160 | * Create thread that polls keyboard. |
- | |
| 161 | */ |
- | |
| 162 | #ifdef SKI |
152 | #ifdef SKI |
| 163 | thread_t *t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true); |
- | |
| 164 | if (!t) |
153 | srln_init(stdin); |
| 165 | panic("Cannot create kkbdpoll."); |
154 | ski_console_init(&srlnin); |
| 166 | thread_ready(t); |
- | |
| 167 | #endif |
155 | #endif |
| 168 | 156 | ||
| 169 | #ifdef I460GX |
157 | #ifdef I460GX |
| - | 158 | #ifdef CONFIG_EGA |
|
| - | 159 | ega_init(EGA_BASE, EGA_VIDEORAM); |
|
| - | 160 | #endif |
|
| - | 161 | ||
| 170 | devno_t devno = device_assign_devno(); |
162 | devno_t devno = device_assign_devno(); |
| 171 | inr_t inr; |
163 | inr_t inr; |
| 172 | 164 | ||
| 173 | #ifdef CONFIG_NS16550 |
165 | #ifdef CONFIG_NS16550 |
| 174 | inr = NS16550_IRQ; |
166 | inr = NS16550_IRQ; |