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