Fix stack iterator on UEFI

Don't know why UEFI wasn't excluded but freestanding is, probably an oversight since I want to have detailed debug info on my panic function on my Headstart bootloader.
This commit is contained in:
leap123 2024-04-11 10:25:49 +07:00 committed by Andrew Kelley
parent 3d1652070a
commit 786876c05e

View File

@ -661,7 +661,7 @@ pub const StackIterator = struct {
fn isValidMemory(address: usize) bool {
// We are unable to determine validity of memory for freestanding targets
if (native_os == .freestanding) return true;
if (native_os == .freestanding or native_os == .uefi) return true;
const aligned_address = address & ~@as(usize, @intCast((mem.page_size - 1)));
if (aligned_address == 0) return false;