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

This reverts commit eaea24f552.
This commit is contained in:
mintsuki 2021-12-11 17:55:47 +01:00
parent 2891c3c4a8
commit 9131aee184

View File

@ -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++) {