From 9ea708da24784d2f4960f0353b7a08c0c2c08145 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 25 Oct 2023 19:36:25 +0200 Subject: RTL8139: Transmission and interrupts seem to magically work now. This commit is done to preserve the functional code before I make new changes. --- cpu/io.s | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cpu/io.s') diff --git a/cpu/io.s b/cpu/io.s index 3c409de..31e9df0 100644 --- a/cpu/io.s +++ b/cpu/io.s @@ -4,6 +4,7 @@ .global outw .global outl .global inb +.global inw .global inl .global rep_outsw .global rep_insw @@ -36,9 +37,9 @@ outb: ret outw: - mov eax, [esp + 8] + mov ax, [esp + 8] mov dx, [esp + 4] - out dx, eax + out dx, ax ret inl: @@ -46,6 +47,11 @@ inl: in eax, dx ret +inw: + mov dx, [esp + 4] + in ax, dx + ret + inb: mov dx, [esp + 4] in al, dx -- cgit v1.2.3