srctree

leap123 parent 3d165207 786876c0
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.

inlinesplit
lib/std/debug.zig added: 2, removed: 2, total 0
@@ -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;