Changeset 4df7d3a in mainline
- Timestamp:
- 2009-03-12T18:02:21Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1462d35
- Parents:
- 0b6eba5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
r0b6eba5 r4df7d3a 194 194 void arch_post_smp_init(void) 195 195 { 196 #ifdef CONFIG_PC_KBD 196 197 devno_t devno = device_assign_devno(); 197 198 /* 199 * Initialize the keyboard module and conect it to stdin. Then 200 * initialize the i8042 controller and connect it to kbrdin. Enable 201 * keyboard interrupts. 202 */ 203 kbrd_init(stdin); 204 (void) i8042_init((i8042_t *) I8042_BASE, devno, IRQ_KBD, &kbrdin); 205 trap_virtual_enable_irqs(1 << IRQ_KBD); 206 198 199 /* 200 * Initialize the i8042 controller. Then initialize the keyboard 201 * module and connect it to i8042. Enable keyboard interrupts. 202 */ 203 indev_t *kbrdin = i8042_init((i8042_t *) I8042_BASE, devno, IRQ_KBD); 204 if (kbrdin) { 205 kbrd_init(kbrdin); 206 trap_virtual_enable_irqs(1 << IRQ_KBD); 207 } 208 207 209 /* 208 210 * This is the necessary evil until the userspace driver is entirely … … 216 218 sysinfo_set_item_val("kbd.address.kernel", NULL, 217 219 (uintptr_t) I8042_BASE); 220 #endif 218 221 } 219 222 … … 251 254 { 252 255 #ifdef CONFIG_FB 253 vesa_redraw(); 256 if (vesa_present()) 257 vesa_redraw(); 258 else 259 #endif 260 #ifdef CONFIG_EGA 261 ega_redraw(); 254 262 #else 255 ega_redraw();263 {} 256 264 #endif 257 265 }
Note:
See TracChangeset
for help on using the changeset viewer.