summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJake Mannens <jake72360@gmail.com>2018-07-30 04:46:10 +1000
committerJake Mannens <jake72360@gmail.com>2018-07-30 04:46:10 +1000
commit5a4038a196887994a09968dc08bee4b11e30c411 (patch)
treeb157ce10ea6893bf2327327a84eeb01fda3bdd5e /include
parent902abebefe10e5e8bc9d80b73e46bcb1635f0be8 (diff)
Added a new subroutine invlpg() to asm.s which simply checks the current
CPU is not an i386 before executing the invlpg instruction with the provided address. This will once again make the kernel compatible with the i386 processor as executing the invlpg instruction without these checks would have resulted in an invalid opcode exception.
Diffstat (limited to 'include')
-rw-r--r--include/asm/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm/system.h b/include/asm/system.h
index 0230f46..2ea2d73 100644
--- a/include/asm/system.h
+++ b/include/asm/system.h
@@ -2,5 +2,7 @@
volatile void switch_to(int n, struct task_struct *task);
+void invlpg(void*);
+
void set_tss(unsigned int n, void *tss);
void clear_tss(unsigned int n);