diff options
author | dzwdz | 2022-08-17 12:49:34 +0200 |
---|---|---|
committer | dzwdz | 2022-08-17 12:49:34 +0200 |
commit | 2341a0705164e94d0874572505b60680fdbe631f (patch) | |
tree | aea0bcd5c2339076b10d9e416ea1af4d1fb48400 /src/kernel/arch/amd64/interrupts/irq.c | |
parent | 63fd7ce362c7f1d59365045f19cf1ca87ffe2db9 (diff) |
amd64: rtl8139 driver with basic rx support
Diffstat (limited to 'src/kernel/arch/amd64/interrupts/irq.c')
-rw-r--r-- | src/kernel/arch/amd64/interrupts/irq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/arch/amd64/interrupts/irq.c b/src/kernel/arch/amd64/interrupts/irq.c index 1760825..818ea8e 100644 --- a/src/kernel/arch/amd64/interrupts/irq.c +++ b/src/kernel/arch/amd64/interrupts/irq.c @@ -24,11 +24,12 @@ void irq_init(void) { port_out8(PIC2+1, 0x1); uint16_t mask = 0xffff; - mask &= ~(1 << IRQ_PIT); mask &= ~(1 << 2); // cascade - mask &= ~(1 << IRQ_PS2KB); mask &= ~(1 << IRQ_COM1); + mask &= ~(1 << IRQ_PIT); + mask &= ~(1 << IRQ_PS2KB); mask &= ~(1 << IRQ_PS2MOUSE); + mask &= ~(1 << IRQ_RTL8139); port_out8(PIC1+1, mask & 0xff); port_out8(PIC2+1, (mask >> 8) & 0xff); |