Changes in kernel/arch/ia32/src/ia32.c [bae43dc:2a103b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/ia32.c
rbae43dc r2a103b5 47 47 #include <arch/boot/boot.h> 48 48 #include <arch/drivers/i8254.h> 49 #include <arch/drivers/i8259.h>50 49 #include <genarch/acpi/acpi.h> 51 50 #include <genarch/drivers/ega/ega.h> 52 51 #include <genarch/drivers/i8042/i8042.h> 52 #include <genarch/drivers/i8259/i8259.h> 53 53 #include <genarch/drivers/ns16550/ns16550.h> 54 54 #include <genarch/drivers/legacy/ia32/io.h> … … 58 58 #include <genarch/multiboot/multiboot.h> 59 59 #include <genarch/multiboot/multiboot2.h> 60 #include <genarch/pic/pic_ops.h> 60 61 #include <arch/pm.h> 61 62 #include <arch/vreg.h> … … 109 110 110 111 /* PIC */ 111 i8259_init(); 112 i8259_init((i8259_t *) I8259_PIC0_BASE, 113 (i8259_t *) I8259_PIC1_BASE, IVT_IRQBASE); 114 115 /* Set PIC operations. */ 116 pic_ops = &i8259_pic_ops; 112 117 } 113 118 } … … 184 189 indev_t *kbrd = kbrd_wire(kbrd_instance, sink); 185 190 i8042_wire(i8042_instance, kbrd); 186 trap_virtual_enable_irqs(1 << IRQ_KBD);187 trap_virtual_enable_irqs(1 << IRQ_MOUSE);191 pic_ops->enable_irqs(1 << IRQ_KBD); 192 pic_ops->enable_irqs(1 << IRQ_MOUSE); 188 193 } 189 194 } … … 210 215 indev_t *srln = srln_wire(srln_instance, sink); 211 216 ns16550_wire(ns16550_instance, srln); 212 trap_virtual_enable_irqs(1 << IRQ_NS16550);217 pic_ops->enable_irqs(1 << IRQ_NS16550); 213 218 } 214 219 #endif … … 221 226 #endif 222 227 223 if (irqs_info != NULL) 224 sysinfo_set_item_val(irqs_info, NULL, true); 228 sysinfo_set_item_val(pic_ops->get_name(), NULL, true); 225 229 } 226 230
Note:
See TracChangeset
for help on using the changeset viewer.