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