summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/kernel/arch/i386/port_io.h4
-rw-r--r--src/kernel/arch/i386/registers.h2
-rw-r--r--src/kernel/mem/virt.h4
3 files changed, 5 insertions, 5 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;
diff --git a/src/kernel/arch/i386/registers.h b/src/kernel/arch/i386/registers.h
index fb369b7..5443b10 100644
--- a/src/kernel/arch/i386/registers.h
+++ b/src/kernel/arch/i386/registers.h
@@ -14,7 +14,7 @@ struct registers {
} __attribute__((__packed__));
// saves a return value according to the SysV ABI
-inline void regs_savereturn(struct registers *regs, uint64_t value) {
+static inline void regs_savereturn(struct registers *regs, uint64_t value) {
regs->eax = value;
regs->edx = value >> 32;
}
diff --git a/src/kernel/mem/virt.h b/src/kernel/mem/virt.h
index 78d0cb3..54454e9 100644
--- a/src/kernel/mem/virt.h
+++ b/src/kernel/mem/virt.h
@@ -29,12 +29,12 @@ bool virt_cpy(
struct pagedir *src_pages, const void __user *src, size_t length);
-inline bool virt_cpy_to(struct pagedir *dest_pages, // physical -> virtual
+static inline bool virt_cpy_to(struct pagedir *dest_pages, // physical -> virtual
void __user *dest, const void *src, size_t length) {
return virt_cpy(dest_pages, dest, NULL, (userptr_t)src, length);
}
-inline bool virt_cpy_from(struct pagedir *src_pages, // virtual -> physical
+static inline bool virt_cpy_from(struct pagedir *src_pages, // virtual -> physical
void *dest, const void __user *src, size_t length) {
return virt_cpy(NULL, (userptr_t)dest, src_pages, src, length);
}