summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordzwdz2021-10-07 21:22:10 +0200
committerdzwdz2021-10-07 21:22:10 +0200
commit53d3fd65b47a3e0f9c4f439022f10852d765a9ba (patch)
treed5f4d742b65cb7d9c75236130f7510e1bf0a75e5 /src
parent12ac8f2134d0ca0b103e70515acad3d6ccf9b9c0 (diff)
kernel/i386: fix port_in16's return value size
Diffstat (limited to 'src')
-rw-r--r--src/kernel/arch/i386/port_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/arch/i386/port_io.h b/src/kernel/arch/i386/port_io.h
index 1938c97..eac9331 100644
--- a/src/kernel/arch/i386/port_io.h
+++ b/src/kernel/arch/i386/port_io.h
@@ -14,7 +14,7 @@ static inline uint8_t port_in8(uint16_t port) {
return val;
}
-static inline uint8_t port_in16(uint16_t port) {
+static inline uint16_t port_in16(uint16_t port) {
uint16_t val;
asm volatile("inw %1, %0" : "=a" (val) : "Nd" (port));
return val;