diff options
| author | leap123 <leapofazzam@protonmail.com> | 2024-04-11 10:25:49 +0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-04-11 14:21:15 -0700 |
| commit | 786876c05efc55ecc9c9c05e89f754f813860436 (patch) | |
| tree | 4f98317ff0074d5edceca2939fff13a70f7647dd /lib/std/debug.zig | |
| parent | 3d1652070acd01b7c871615702916425cd292a8a (diff) | |
| download | zig-786876c05efc55ecc9c9c05e89f754f813860436.tar.gz zig-786876c05efc55ecc9c9c05e89f754f813860436.zip | |
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.
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index d1d6201b80..f54856c05b 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -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; |
