From 48f574a1708703b3d4ca3a573b4b0f971885b519 Mon Sep 17 00:00:00 2001 From: Curle Date: Mon, 31 Aug 2020 21:50:20 +0100 Subject: [PATCH] Add missing invlpg function to cpu.c --- chroma/system/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chroma/system/cpu.c b/chroma/system/cpu.c index 8d142f2..a66a924 100644 --- a/chroma/system/cpu.c +++ b/chroma/system/cpu.c @@ -23,6 +23,10 @@ #define MC_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 DFStack[DF_STACK] = {0}; __attribute__((aligned(64))) static volatile unsigned char MCStack[MC_STACK] = {0};