From 062092543fdbd6fa2676e4f5b37a15f7bba94332 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 6 Nov 2013 16:20:54 -0800 Subject: 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 --- libc/arch-mips/syscalls/__fcntl.S | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 libc/arch-mips/syscalls/__fcntl.S (limited to 'libc/arch-mips/syscalls') diff --git a/libc/arch-mips/syscalls/__fcntl.S b/libc/arch-mips/syscalls/__fcntl.S deleted file mode 100644 index 2288c7e..0000000 --- a/libc/arch-mips/syscalls/__fcntl.S +++ /dev/null @@ -1,23 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - .text - .globl __fcntl - .align 4 - .ent __fcntl - -__fcntl: - .set noreorder - .cpload $t9 - li $v0, __NR_fcntl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno - j $t9 - nop - .set reorder - .end __fcntl -- cgit v1.1