From f92fe900697fd841bd63c9e08ea90a4d70a4cc37 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Mon, 7 Feb 2022 17:49:23 -0700
Subject: [PATCH] Use requested page table in trampoline

---
 src/asm/x86_64/trampoline.asm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/asm/x86_64/trampoline.asm b/src/asm/x86_64/trampoline.asm
index 39d89bcc..0fff14fa 100644
--- a/src/asm/x86_64/trampoline.asm
+++ b/src/asm/x86_64/trampoline.asm
@@ -27,7 +27,7 @@ startup_ap:
     mov sp, 0
 
     ;cr3 holds pointer to PML4
-    mov edi, 0x70000
+    mov edi, [trampoline.page_table]
     mov cr3, edi
 
     ; Enable FPU
-- 
GitLab