:: commit 977b00f0b35ff9c472e3cfb7422e731279fdda7a

mintsuki <mintsuki@protonmail.com> — 2021-05-23 01:34

parents: dc3b45a9a9

stivale2: Fix bug where when requesting higher half pointers the stivale2 struct pointer was still passed in the lower half

diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c
index daf9d466..70271477 100644
--- a/stage23/protos/stivale2.c
+++ b/stage23/protos/stivale2.c
@@ -519,5 +519,6 @@ skip_modeset:;
     term_write("\e[2J\e[H", 7);
 
     stivale_spinup(bits, want_5lv, &pagemap, entry_point,
-                   (uint64_t)(uintptr_t)&stivale2_struct, stivale2_hdr.stack);
+                   REPORTED_ADDR((uint64_t)(uintptr_t)&stivale2_struct),
+                   stivale2_hdr.stack);
 }
tab: 248 wrap: offon