From 5a4038a196887994a09968dc08bee4b11e30c411 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 30 Jul 2018 04:46:10 +1000 Subject: 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. --- include/asm/system.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.3