diff options
author | Anton Kling <anton@kling.gg> | 2023-10-24 19:22:27 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-30 21:49:48 +0100 |
commit | 730e065e0bba1394750b3172bb7e2f1c0fd42c73 (patch) | |
tree | a37d4745fccb530948eb795a3eca7200c24d63b9 /cpu/io.s | |
parent | ba1952bf4c08b7783854d501ba30815a2aa2574c (diff) |
Kernel: Add basic PCI and very basic rtl8139 support
Diffstat (limited to 'cpu/io.s')
-rw-r--r-- | cpu/io.s | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -1,7 +1,10 @@ .intel_syntax noprefix .global outsw .global outb +.global outw +.global outl .global inb +.global inl .global rep_outsw .global rep_insw .global flush_tss @@ -20,12 +23,29 @@ outsw: pop ebp ret +outl: + mov eax, [esp + 8] + mov dx, [esp + 4] + out dx, eax + ret + outb: mov al, [esp + 8] mov dx, [esp + 4] out dx, al ret +outw: + mov eax, [esp + 8] + mov dx, [esp + 4] + out dx, eax + ret + +inl: + mov dx, [esp + 4] + in eax, dx + ret + inb: mov dx, [esp + 4] in al, dx |