diff options
author | Elliott Hughes <enh@google.com> | 2013-11-06 16:20:54 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-11-06 16:33:39 -0800 |
commit | 062092543fdbd6fa2676e4f5b37a15f7bba94332 (patch) | |
tree | 1363126a8783cca6b0ae3faf7cab2657d1934323 /libc/arch-arm | |
parent | 7115c80231aa88272294076c8775c09727ece85a (diff) | |
download | bionic-062092543fdbd6fa2676e4f5b37a15f7bba94332.zip bionic-062092543fdbd6fa2676e4f5b37a15f7bba94332.tar.gz bionic-062092543fdbd6fa2676e4f5b37a15f7bba94332.tar.bz2 |
Clean up the 32-bit kernel support, fix LP64 fcntl declaration.
In practice, thanks to all the registers the stubs don't actually change,
but it's confusing to have an incorrect declaration.
I suspect that fcntl remains broken for aarch64; it happens to work for
x86_64 because the first vararg argument gets placed in the right register
anyway, but I have no reason to believe that's true for aarch64.
This patch adds a unit test, though, so we'll be able to tell when we get
as far as running the unit tests.
Change-Id: I58dd0054fe99d7d51d04c22781d8965dff1afbf3
Diffstat (limited to 'libc/arch-arm')
-rw-r--r-- | libc/arch-arm/syscalls.mk | 1 | ||||
-rw-r--r-- | libc/arch-arm/syscalls/__fcntl.S | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/libc/arch-arm/syscalls.mk b/libc/arch-arm/syscalls.mk index 9d24a1d..75b6133 100644 --- a/libc/arch-arm/syscalls.mk +++ b/libc/arch-arm/syscalls.mk @@ -4,7 +4,6 @@ syscall_src += arch-arm/syscalls/__brk.S syscall_src += arch-arm/syscalls/__clone.S syscall_src += arch-arm/syscalls/__epoll_pwait.S syscall_src += arch-arm/syscalls/__exit.S -syscall_src += arch-arm/syscalls/__fcntl.S syscall_src += arch-arm/syscalls/__fcntl64.S syscall_src += arch-arm/syscalls/__fstatfs64.S syscall_src += arch-arm/syscalls/__getcpu.S diff --git a/libc/arch-arm/syscalls/__fcntl.S b/libc/arch-arm/syscalls/__fcntl.S deleted file mode 100644 index 5479a0f..0000000 --- a/libc/arch-arm/syscalls/__fcntl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <asm/unistd.h> -#include <linux/err.h> -#include <machine/asm.h> - -ENTRY(__fcntl) - mov ip, r7 - ldr r7, =__NR_fcntl - swi #0 - mov r7, ip - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno -END(__fcntl) |