:: commit 9131aee184d4df6f21ca10a015755c7ac23d2192

mintsuki <mintsuki@protonmail.com> — 2021-12-11 16:55

parents: 2891c3c4a8

Revert "stivale2: Only test stack validity if in top 2GiB"

This reverts commit eaea24f5521c4c620b63c5a463cb03f8f6fc0451.
diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c
index 1a73acc0..6277185f 100644
--- a/stage23/protos/stivale2.c
+++ b/stage23/protos/stivale2.c
@@ -273,7 +273,7 @@ failed_to_load_header_section:
         print("stivale2: WARNING: Requested stack is not 16-byte aligned\n");
     }
 
-    if (stivale2_hdr.stack >= 0xffffffff80000000 && ranges != NULL) {
+    if (stivale2_hdr.stack != 0 && ranges != NULL) {
         bool stack_valid = false;
 
         for (size_t i = 0; i < ranges_count; i++) {
tab: 248 wrap: offon