authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 02:00:44+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-01 20:58:08+02:00
logf7d07b44d1c6eb05e9695f8ae28a0c64fbd14dd9
tree53b3e1e336c0b0358c6a64455c2f666ee699f1a7
parenta2868147b12985a660fa8f642b08385acc6d41df
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux: Fix arm check in fadvise() to also include thumb.


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/linux.zig+1-1
......@@ -2226,7 +2226,7 @@ pub fn process_vm_writev(pid: pid_t, local: []const iovec_const, remote: []const
22262226}
22272227
22282228pub fn fadvise(fd: fd_t, offset: i64, len: i64, advice: usize) usize {
2229 if (comptime native_arch.isARM() or native_arch.isPowerPC32()) {
2229 if (comptime native_arch.isArmOrThumb() or native_arch.isPowerPC32()) {
22302230 // These architectures reorder the arguments so that a register is not skipped to align the
22312231 // register number that `offset` is passed in.
22322232