aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/io/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/io/io.c')
-rw-r--r--src/kernel/io/io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/io/io.c b/src/kernel/io/io.c
index af5f008..1ef82b6 100644
--- a/src/kernel/io/io.c
+++ b/src/kernel/io/io.c
@@ -98,6 +98,11 @@ void cr0_set(u32 cr0)
asm volatile("movl %%eax, %%cr0" ::"a"(cr0));
}
+void invlpg(u32 addr)
+{
+ asm volatile("invlpg (%0)" ::"r"(addr) : "memory");
+}
+
void serial_install()
{
outb(0x3f8 + 1, 0x00);