diff options
author | Anton Kling <anton@kling.gg> | 2024-06-09 22:05:53 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-09 22:05:53 +0200 |
commit | 15003d1b0abccc8bcef84386c4a6da176e41f883 (patch) | |
tree | d4f8c4f1602ee9e6c4332f3b0585d0e284d0f695 /kernel/drivers/rtl8139.c | |
parent | ddd796325c9c703f007f046ed9f6fd9eb0ba6383 (diff) |
Add UDP
Diffstat (limited to 'kernel/drivers/rtl8139.c')
-rw-r--r-- | kernel/drivers/rtl8139.c | 6 |
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); } |