Changeset 3e828ea in mainline for kernel/arch/ia32/src/ia32.c
- Timestamp:
- 2019-09-23T12:49:29Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9be2358
- Parents:
- 9259d20 (diff), 1a4ec93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Jiri Svoboda <jiri@…> (2019-09-22 12:49:07)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-09-23 12:49:29)
- File:
-
- 1 edited
-
kernel/arch/ia32/src/ia32.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/ia32.c
r9259d20 r3e828ea 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> … … 110 111 /* PIC */ 111 112 i8259_init((i8259_t *) I8259_PIC0_BASE, 112 (i8259_t *) I8259_PIC1_BASE, IRQ_PIC1, IVT_IRQBASE, 113 IVT_IRQBASE + 8); 114 115 /* 116 * Set the enable/disable IRQs handlers. 117 * Set the End-of-Interrupt handler. 118 */ 119 enable_irqs_function = pic_enable_irqs; 120 disable_irqs_function = pic_disable_irqs; 121 eoi_function = pic_eoi; 122 irqs_info = "i8259"; 113 (i8259_t *) I8259_PIC1_BASE, IVT_IRQBASE); 114 115 /* Set PIC operations. */ 116 pic_ops = &i8259_pic_ops; 123 117 } 124 118 } … … 195 189 indev_t *kbrd = kbrd_wire(kbrd_instance, sink); 196 190 i8042_wire(i8042_instance, kbrd); 197 trap_virtual_enable_irqs(1 << IRQ_KBD);198 trap_virtual_enable_irqs(1 << IRQ_MOUSE);191 pic_ops->enable_irqs(1 << IRQ_KBD); 192 pic_ops->enable_irqs(1 << IRQ_MOUSE); 199 193 } 200 194 } … … 221 215 indev_t *srln = srln_wire(srln_instance, sink); 222 216 ns16550_wire(ns16550_instance, srln); 223 trap_virtual_enable_irqs(1 << IRQ_NS16550);217 pic_ops->enable_irqs(1 << IRQ_NS16550); 224 218 } 225 219 #endif … … 232 226 #endif 233 227 234 if (irqs_info != NULL) 235 sysinfo_set_item_val(irqs_info, NULL, true); 228 sysinfo_set_item_val(pic_ops->get_name(), NULL, true); 236 229 } 237 230
Note:
See TracChangeset
for help on using the changeset viewer.
