authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-16 11:07:48+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-18 07:27:23+02:00
logbcf41c859430301fe8117514b90e2610ae107276
tree91dd5230f7004adaa725cbda4801896fe6a5ee1e
parent2b05e85107dd1c637ab40f8b145b232d18e8d6c6

std.os.linux: Fix E definition for mips64.


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

lib/std/os/linux.zig+2-2
...@@ -2272,7 +2272,7 @@ pub fn fadvise(fd: fd_t, offset: i64, len: i64, advice: usize) usize {...@@ -2272,7 +2272,7 @@ pub fn fadvise(fd: fd_t, offset: i64, len: i64, advice: usize) usize {
2272 length_halves[0],2272 length_halves[0],
2273 length_halves[1],2273 length_halves[1],
2274 );2274 );
2275 } else if (comptime native_arch == .mips or native_arch == .mipsel) {2275 } else if (native_arch.isMIPS32()) {
2276 // MIPS O32 does not deal with the register alignment issue, so pass a dummy value.2276 // MIPS O32 does not deal with the register alignment issue, so pass a dummy value.
22772277
2278 const offset_halves = splitValue64(offset);2278 const offset_halves = splitValue64(offset);
...@@ -2382,7 +2382,7 @@ pub fn map_shadow_stack(addr: u64, size: u64, flags: u32) usize {...@@ -2382,7 +2382,7 @@ pub fn map_shadow_stack(addr: u64, size: u64, flags: u32) usize {
2382}2382}
23832383
2384pub const E = switch (native_arch) {2384pub const E = switch (native_arch) {
2385 .mips, .mipsel => enum(u16) {2385 .mips, .mipsel, .mips64, .mips64el => enum(u16) {
2386 /// No error occurred.2386 /// No error occurred.
2387 SUCCESS = 0,2387 SUCCESS = 0,
23882388