Changeset 8607db8 in mainline for kernel/arch/amd64/src/amd64.c
- Timestamp:
- 2006-10-27T13:34:20Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ec04b20
- Parents:
- 16d71f41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
r16d71f41 r8607db8 62 62 #include <syscall/syscall.h> 63 63 #include <console/console.h> 64 #include <ddi/irq.h> 65 #include <ddi/device.h> 64 66 65 67 … … 131 133 132 134 if (config.cpu_active == 1) { 135 interrupt_init(); 133 136 bios_init(); 134 i8259_init(); /* PIC */ 135 i8254_init(); /* hard clock */ 136 137 #ifdef CONFIG_SMP 138 exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", 139 tlb_shootdown_ipi); 140 #endif /* CONFIG_SMP */ 137 138 /* PIC */ 139 i8259_init(); 141 140 } 142 141 } … … 145 144 { 146 145 if (config.cpu_active == 1) { 146 /* Initialize IRQ routing */ 147 irq_init(IRQ_COUNT, IRQ_COUNT); 148 149 /* hard clock */ 150 i8254_init(); 151 147 152 #ifdef CONFIG_FB 148 153 if (vesa_present()) … … 151 156 #endif 152 157 ega_init(); /* video */ 158 153 159 /* Enable debugger */ 154 160 debugger_init(); … … 184 190 void arch_post_smp_init(void) 185 191 { 186 i8042_init(); /* keyboard controller */ 192 /* keyboard controller */ 193 i8042_init(device_assign_devno(), IRQ_KBD, device_assign_devno(), IRQ_MOUSE); 187 194 } 188 195 … … 190 197 { 191 198 i8254_calibrate_delay_loop(); 192 i8254_normal_operation(); 199 if (config.cpu_active == 1) { 200 /* 201 * This has to be done only on UP. 202 * On SMP, i8254 is not used for time keeping and its interrupt pin remains masked. 203 */ 204 i8254_normal_operation(); 205 } 193 206 } 194 207
Note:
See TracChangeset
for help on using the changeset viewer.