Add missing invlpg function to cpu.c

This commit is contained in:
Curle 2020-08-31 21:50:20 +01:00
parent baf09c80f2
commit 48f574a170
Signed by: TheCurle
GPG Key ID: 5942F13718443F79

View File

@ -23,6 +23,10 @@
#define MC_STACK 4096 #define MC_STACK 4096
#define BP_STACK 4096 #define BP_STACK 4096
void InvalidatePage(size_t Page) {
__asm__ __volatile__("invlpg (%%eax)" : : "a" (Page) );
}
__attribute__((aligned(64))) static volatile unsigned char NMIStack[NMI_STACK] = {0}; __attribute__((aligned(64))) static volatile unsigned char NMIStack[NMI_STACK] = {0};
__attribute__((aligned(64))) static volatile unsigned char DFStack[DF_STACK] = {0}; __attribute__((aligned(64))) static volatile unsigned char DFStack[DF_STACK] = {0};
__attribute__((aligned(64))) static volatile unsigned char MCStack[MC_STACK] = {0}; __attribute__((aligned(64))) static volatile unsigned char MCStack[MC_STACK] = {0};