aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/io
diff options
context:
space:
mode:
authorMarvin Borner2019-10-15 22:20:02 +0200
committerMarvin Borner2019-10-15 22:20:02 +0200
commit0e75de0452774c1d4f9a16ff593d9ec2fac829bc (patch)
tree6e9741c6b2117796a2e40da1f0fade84c090aac7 /src/kernel/io
parent3665776a509bf32f3166744392f502402e9fcf03 (diff)
No more errors!
Still not working
Diffstat (limited to 'src/kernel/io')
-rw-r--r--src/kernel/io/io.c8
1 files changed, 4 insertions, 4 deletions
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;
}