mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 09:25:11 +00:00
std.os.linux: Fix arm check in fadvise() to also include thumb.
This commit is contained in:
parent
a2868147b1
commit
f7d07b44d1
@ -2226,7 +2226,7 @@ pub fn process_vm_writev(pid: pid_t, local: []const iovec_const, remote: []const
|
||||
}
|
||||
|
||||
pub fn fadvise(fd: fd_t, offset: i64, len: i64, advice: usize) usize {
|
||||
if (comptime native_arch.isARM() or native_arch.isPowerPC32()) {
|
||||
if (comptime native_arch.isArmOrThumb() or native_arch.isPowerPC32()) {
|
||||
// These architectures reorder the arguments so that a register is not skipped to align the
|
||||
// register number that `offset` is passed in.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user