:: commit 1a0c38949b1d7e3a94828e35a421dcf89a51aeed

Kacper Słomiński <kacper.slominski72@gmail.com> — 2023-07-26 21:03

parents: 051a7a631f

limine: Use a higher-half pointer for the stack on AArch64

diff --git a/common/protos/limine.c b/common/protos/limine.c
index 92a9e789..79e309e6 100644
--- a/common/protos/limine.c
+++ b/common/protos/limine.c
@@ -1225,7 +1225,9 @@ FEAT_END
 #elif defined (__aarch64__)
     vmm_assert_4k_pages();
 
-    enter_in_el1(entry_point, (uint64_t)stack, LIMINE_SCTLR, LIMINE_MAIR(fb_attr), LIMINE_TCR(tsz, pa),
+    uint64_t reported_stack = reported_addr(stack);
+
+    enter_in_el1(entry_point, reported_stack, LIMINE_SCTLR, LIMINE_MAIR(fb_attr), LIMINE_TCR(tsz, pa),
                  (uint64_t)pagemap.top_level[0],
                  (uint64_t)pagemap.top_level[1], 0);
 #else
tab: 248 wrap: offon