Changes in kernel/arch/amd64/src/amd64.c [2a103b5:bae43dc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
r2a103b5 rbae43dc 45 45 #include <arch/boot/boot.h> 46 46 #include <arch/drivers/i8254.h> 47 #include <arch/drivers/i8259.h> 47 48 #include <arch/syscall.h> 48 49 #include <genarch/acpi/acpi.h> 49 50 #include <genarch/drivers/ega/ega.h> 50 51 #include <genarch/drivers/i8042/i8042.h> 51 #include <genarch/drivers/i8259/i8259.h>52 52 #include <genarch/drivers/ns16550/ns16550.h> 53 53 #include <genarch/drivers/legacy/ia32/io.h> … … 60 60 #include <arch/vreg.h> 61 61 #include <arch/kseg.h> 62 #include <genarch/pic/pic_ops.h>63 62 64 63 #ifdef CONFIG_SMP … … 121 120 122 121 /* PIC */ 123 i8259_init((i8259_t *) I8259_PIC0_BASE, 124 (i8259_t *) I8259_PIC1_BASE, IVT_IRQBASE); 125 126 /* Set PIC operations. */ 127 pic_ops = &i8259_pic_ops; 122 i8259_init(); 128 123 } 129 124 } … … 204 199 indev_t *kbrd = kbrd_wire(kbrd_instance, sink); 205 200 i8042_wire(i8042_instance, kbrd); 206 pic_ops->enable_irqs(1 << IRQ_KBD);207 pic_ops->enable_irqs(1 << IRQ_MOUSE);201 trap_virtual_enable_irqs(1 << IRQ_KBD); 202 trap_virtual_enable_irqs(1 << IRQ_MOUSE); 208 203 } 209 204 } … … 230 225 indev_t *srln = srln_wire(srln_instance, sink); 231 226 ns16550_wire(ns16550_instance, srln); 232 pic_ops->enable_irqs(1 << IRQ_NS16550);227 trap_virtual_enable_irqs(1 << IRQ_NS16550); 233 228 } 234 229 #endif … … 241 236 #endif 242 237 243 sysinfo_set_item_val(pic_ops->get_name(), NULL, true); 238 if (irqs_info != NULL) 239 sysinfo_set_item_val(irqs_info, NULL, true); 244 240 } 245 241
Note:
See TracChangeset
for help on using the changeset viewer.