Changeset 06ae793 in mainline
- Timestamp:
- 2018-02-13T20:14:25Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9658879
- Parents:
- 448e093
- Location:
- kernel/arch/ia32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/arch/drivers/i8259.h
r448e093 r06ae793 44 44 #define PIC_PIC1PORT2 ((ioport8_t *) 0xa1U) 45 45 46 #define PIC_NEEDICW4 (1 << 0) 47 #define PIC_ICW1 (1 << 4) 46 /* ICW1 bits */ 47 #define PIC_ICW1 (1 << 4) 48 #define PIC_ICW1_NEEDICW4 (1 << 0) 49 50 /* OCW4 bits */ 51 #define PIC_OCW4 (0 << 3) 52 #define PIC_OCW4_NSEOI (1 << 5) 48 53 49 54 extern void i8259_init(void); -
kernel/arch/ia32/src/drivers/i8259.c
r448e093 r06ae793 50 50 { 51 51 /* ICW1: this is ICW1, ICW4 to follow */ 52 pio_write_8(PIC_PIC0PORT1, PIC_ICW1 | PIC_ NEEDICW4);52 pio_write_8(PIC_PIC0PORT1, PIC_ICW1 | PIC_ICW1_NEEDICW4); 53 53 54 54 /* ICW2: IRQ 0 maps to INT IRQBASE */ … … 62 62 63 63 /* ICW1: ICW1, ICW4 to follow */ 64 pio_write_8(PIC_PIC1PORT1, PIC_ICW1 | PIC_ NEEDICW4);64 pio_write_8(PIC_PIC1PORT1, PIC_ICW1 | PIC_ICW1_NEEDICW4); 65 65 66 66 /* ICW2: IRQ 8 maps to INT (IVT_IRQBASE + 8) */ … … 122 122 void pic_eoi(void) 123 123 { 124 pio_write_8( (ioport8_t *) 0x20, 0x20);125 pio_write_8( (ioport8_t *) 0xa0, 0x20);124 pio_write_8(PIC_PIC0PORT1, PIC_OCW4 | PIC_OCW4_NSEOI); 125 pio_write_8(PIC_PIC1PORT1, PIC_OCW4 | PIC_OCW4_NSEOI); 126 126 } 127 127
Note:
See TracChangeset
for help on using the changeset viewer.