summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-05-29 21:11:22 -0500
committerDanny Holman <dholman@gymli.org>2024-05-29 21:11:22 -0500
commit4f94edd301573550ae01e51475ed7d6157f6d71e (patch)
treebbea3f860bb0518005b1205a4f7c26ea8b31e856
parentb6817990b469b901bf4c269bec6813043ed38c61 (diff)
arch: i386: asm: make flush_gdt available
Make the declaration of flush_gdt available to files including asm.h. Signed-off-by: Danny Holman <dholman@gymli.org>
-rw-r--r--arch/i386/include/kernel/asm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/include/kernel/asm.h b/arch/i386/include/kernel/asm.h
index 3c7bc00..a002a44 100644
--- a/arch/i386/include/kernel/asm.h
+++ b/arch/i386/include/kernel/asm.h
@@ -109,6 +109,8 @@ void release_lock(int *lock);
void enable_paging(uint32_t new_cr3);
+void flush_gdt(void);
+
static inline void outb(uint16_t port, uint8_t value) {
__asm__ volatile("outb %0, %1" : : "a"(value), "Nd"(port));
}