authorgravatar for leapofazzam@protonmail.comleap123 <leapofazzam@protonmail.com> 2024-04-11 10:25:49+07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-04-11 14:21:15-07:00
log786876c05efc55ecc9c9c05e89f754f813860436
tree4f98317ff0074d5edceca2939fff13a70f7647dd
parent3d1652070acd01b7c871615702916425cd292a8a

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.

1 files changed, 1 insertions(+), 1 deletions(-)

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