From 4eae38a6ce9110a155715575adcf12bdf45703cb Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Tue, 14 Mar 2023 03:16:54 +0100 Subject: CGA cursor location --- src/arch/x86_64/asm/io_port.s | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/arch/x86_64/asm') 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 -- cgit v1.2.3-70-g09d2