Skip to content

Commit 786876c

Browse files
leap0x7bandrewrk
authored andcommitted
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 parent 3d16520 commit 786876c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/debug.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ pub const StackIterator = struct {
661661

662662
fn isValidMemory(address: usize) bool {
663663
// 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

666666
const aligned_address = address & ~@as(usize, @intCast((mem.page_size - 1)));
667667
if (aligned_address == 0) return false;

0 commit comments

Comments
 (0)