summaryrefslogtreecommitdiff
path: root/kernel/drivers/rtl8139.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/rtl8139.c')
-rw-r--r--kernel/drivers/rtl8139.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/drivers/rtl8139.c b/kernel/drivers/rtl8139.c
index 78e6570..c0aa0b2 100644
--- a/kernel/drivers/rtl8139.c
+++ b/kernel/drivers/rtl8139.c
@@ -194,11 +194,9 @@ void rtl8139_init(void) {
outl(base_address + 0x44,
0xf); // 0xf is AB+AM+APM+AAP
- install_handler((interrupt_handler)rtl8139_handler, INT_32_INTERRUPT_GATE(0x3),
- 0x20 + interrupt_line);
+ install_handler((interrupt_handler)rtl8139_handler,
+ INT_32_INTERRUPT_GATE(0x3), 0x20 + interrupt_line);
- // ksbrk() seems to have the magical ability of disabling interrupts?
- // I have no fucking clue why that happens and it was a pain to debug.
for (int i = 0; i < 4; i++) {
send_buffers[i] = ksbrk(0x1000);
}