diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index c86d2e7c4..47b7ef885 100644 --- a/libc/SYSCALLS.TXT +++ b/libc/SYSCALLS.TXT @@ -170,8 +170,8 @@ int fallocate|fallocate64(int, int, off_t, off_t) arm64,mips64,x86_64 # posix_fadvise64 is awkward: arm has shuffled arguments, # the POSIX functions don't set errno, and no architecture has posix_fadvise. int __arm_fadvise64_64:arm_fadvise64_64(int, int, off64_t, off64_t) arm -int __fadvise64:fadvise64_64(int, off64_t, off64_t, int) mips,x86 -int __fadvise64:fadvise64(int, off64_t, off64_t, int) arm64,mips64,x86_64 +int __fadvise64:fadvise64_64(int, off64_t, off64_t, int) x86 +int __fadvise64:fadvise64(int, off64_t, off64_t, int) arm64,mips,mips64,x86_64 int __fstatfs64:fstatfs64(int, size_t, struct statfs*) arm,mips,x86 int fstatfs64|fstatfs:fstatfs(int, struct statfs*) arm64,mips64,x86_64 diff --git a/libc/arch-mips/syscalls/__fadvise64.S b/libc/arch-mips/syscalls/__fadvise64.S index 6d494a169..abacbb2b7 100644 --- a/libc/arch-mips/syscalls/__fadvise64.S +++ b/libc/arch-mips/syscalls/__fadvise64.S @@ -5,7 +5,7 @@ ENTRY(__fadvise64) .set noreorder .cpload t9 - li v0, __NR_fadvise64_64 + li v0, __NR_fadvise64 syscall bnez a3, 1f move a0, v0