diff options
| author | Tianhao Wang <shrik3@riseup.net> | 2023-03-14 03:16:54 +0100 |
|---|---|---|
| committer | Tianhao Wang <shrik3@riseup.net> | 2023-03-14 03:16:54 +0100 |
| commit | 4eae38a6ce9110a155715575adcf12bdf45703cb (patch) | |
| tree | 407cc8f97eabca6d67cd6e83801d83b3a1542beb /src/arch/x86_64/asm | |
| parent | b6a2fe46752ce5198122bd427a36fdd8878fd05a (diff) | |
CGA cursor location
Diffstat (limited to 'src/arch/x86_64/asm')
| -rw-r--r-- | src/arch/x86_64/asm/io_port.s | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/arch/x86_64/asm/io_port.s b/src/arch/x86_64/asm/io_port.s index 9ddc4e6..3aec69d 100644 --- a/src/arch/x86_64/asm/io_port.s +++ b/src/arch/x86_64/asm/io_port.s @@ -11,10 +11,10 @@ ; EXPORTED FUNCTIONS -[GLOBAL outb] -[GLOBAL outw] -[GLOBAL inb] -[GLOBAL inw] +[GLOBAL _outb] +[GLOBAL _outw] +[GLOBAL _inb] +[GLOBAL _inw] ; FUNCTION IMPLEMENTATIONS @@ -24,7 +24,7 @@ ; ; C prototype: void outb (int port, int value); -outb: +_outb: push rbp mov rbp, rsp mov rdx, rdi @@ -37,7 +37,7 @@ outb: ; ; C prototype: void outw (int port, int value); -outw: +_outw: push rbp mov rbp, rsp mov rdx, rdi @@ -50,7 +50,7 @@ outw: ; ; C prototype: unsigned char inb (int port); -inb: +_inb: push rbp mov rbp, rsp mov rdx, rdi @@ -62,7 +62,7 @@ inb: ; ; C prototype: unsigned short inw (int port); -inw: +_inw: push rbp mov rbp, rsp mov rdx, rdi |
