diff options
author | dzwdz | 2021-09-12 16:30:04 +0200 |
---|---|---|
committer | dzwdz | 2021-09-12 16:30:04 +0200 |
commit | e5499c8dcbb29c405e551d39856b48b6aa3e91af (patch) | |
tree | 966b6e48bcf39f833edae2daadc1211a534aba99 /src/kernel/arch/i386/port_io.h | |
parent | e4e4007fbbeede6f9a59dab6327f0ef3a4675801 (diff) |
make the inline functions static
otherwise this doesn't compile with -O0
Diffstat (limited to 'src/kernel/arch/i386/port_io.h')
-rw-r--r-- | src/kernel/arch/i386/port_io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/arch/i386/port_io.h b/src/kernel/arch/i386/port_io.h index db755b4..a4d640f 100644 --- a/src/kernel/arch/i386/port_io.h +++ b/src/kernel/arch/i386/port_io.h @@ -1,10 +1,10 @@ #include <stdint.h> -inline void port_outb(uint16_t port, uint8_t val) { +static inline void port_outb(uint16_t port, uint8_t val) { asm volatile("outb %0, %1" : : "a" (val), "Nd" (port)); } -inline uint8_t port_inb(uint16_t port) { +static inline uint8_t port_inb(uint16_t port) { uint8_t val; asm volatile("inb %1, %0" : "=a" (val) : "Nd" (port)); return val; |