summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/registers.h
diff options
context:
space:
mode:
authordzwdz2021-09-12 16:30:04 +0200
committerdzwdz2021-09-12 16:30:04 +0200
commite5499c8dcbb29c405e551d39856b48b6aa3e91af (patch)
tree966b6e48bcf39f833edae2daadc1211a534aba99 /src/kernel/arch/i386/registers.h
parente4e4007fbbeede6f9a59dab6327f0ef3a4675801 (diff)
make the inline functions static
otherwise this doesn't compile with -O0
Diffstat (limited to 'src/kernel/arch/i386/registers.h')
-rw-r--r--src/kernel/arch/i386/registers.h2
1 files changed, 1 insertions, 1 deletions
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;
}