aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/io
diff options
context:
space:
mode:
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;
}