| ... | @@ -425,6 +425,9 @@ pub const StackIterator = struct { | ... | @@ -425,6 +425,9 @@ pub const StackIterator = struct { |
| 425 | } | 425 | } |
| 426 | | 426 | |
| 427 | fn isValidMemory(address: usize) bool { | 427 | fn isValidMemory(address: usize) bool { |
| | 428 | // We are unable to determine validity of memory for freestanding targets |
| | 429 | if (native_os == .freestanding) return true; |
| | 430 | |
| 428 | const aligned_address = address & ~@intCast(usize, (mem.page_size - 1)); | 431 | const aligned_address = address & ~@intCast(usize, (mem.page_size - 1)); |
| 429 | | 432 | |
| 430 | // If the address does not span 2 pages, query only the first one | 433 | // If the address does not span 2 pages, query only the first one |