diff options
author | dzwdz | 2021-10-07 21:22:10 +0200 |
---|---|---|
committer | dzwdz | 2021-10-07 21:22:10 +0200 |
commit | 53d3fd65b47a3e0f9c4f439022f10852d765a9ba (patch) | |
tree | d5f4d742b65cb7d9c75236130f7510e1bf0a75e5 /src/kernel/arch/i386/port_io.h | |
parent | 12ac8f2134d0ca0b103e70515acad3d6ccf9b9c0 (diff) |
kernel/i386: fix port_in16's return value size
Diffstat (limited to 'src/kernel/arch/i386/port_io.h')
-rw-r--r-- | src/kernel/arch/i386/port_io.h | 2 |
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; |