From 0e75de0452774c1d4f9a16ff593d9ec2fac829bc Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 15 Oct 2019 22:20:02 +0200 Subject: No more errors! Still not working --- src/kernel/io/io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/kernel/io/io.c') diff --git a/src/kernel/io/io.c b/src/kernel/io/io.c index 5da4e0e..e699ae0 100644 --- a/src/kernel/io/io.c +++ b/src/kernel/io/io.c @@ -3,19 +3,19 @@ #include "io.h" uint8_t receive_b(uint16_t port) { - unsigned char value; + uint8_t value; asm volatile ("inb %1, %0" : "=a"(value) : "Nd"(port)); return value; } uint16_t receive_w(uint16_t port) { - unsigned char value; - asm volatile("inb %1,%0" : "=a"(value) : "Nd"(port)); // TODO: Fix inw error + uint16_t value; + asm volatile("inw %1, %0" : "=a"(value) : "Nd"(port)); return value; } uint32_t receive_l(uint16_t port) { - unsigned char value; + uint32_t value; asm volatile ("inb %1, %0" : "=a"(value) : "Nd"(port)); return value; } -- cgit v1.2.3