mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
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:
parent
3d1652070a
commit
786876c05e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user