summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/bionic/tkill.S
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-22 05:39:05 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-03-22 05:39:06 +0000
commit3323628d635d3973965ee458c1fee7d8ab45136f (patch)
tree2e6558ee71209b8520dbdd757b1d2cae37937040 /libc/arch-arm/bionic/tkill.S
parentbabb72dc292a567674f6d7d2ccf7f63edaf77b80 (diff)
parent5c2772f59d3b6f564897187324d8606f54423207 (diff)
downloadbionic-3323628d635d3973965ee458c1fee7d8ab45136f.zip
bionic-3323628d635d3973965ee458c1fee7d8ab45136f.tar.gz
bionic-3323628d635d3973965ee458c1fee7d8ab45136f.tar.bz2
Merge "The SYS_ constants should cover all __NR_ values."
Diffstat (limited to 'libc/arch-arm/bionic/tkill.S')
-rw-r--r--libc/arch-arm/bionic/tkill.S13
1 files changed, 5 insertions, 8 deletions
diff --git a/libc/arch-arm/bionic/tkill.S b/libc/arch-arm/bionic/tkill.S
index d5bb739..fd6e21e 100644
--- a/libc/arch-arm/bionic/tkill.S
+++ b/libc/arch-arm/bionic/tkill.S
@@ -25,6 +25,11 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
+
+#include <linux/err.h>
+#include <asm/unistd.h>
+#include <machine/asm.h>
+
/* unlike our auto-generated syscall stubs, this code saves lr
on the stack, as well as a few other registers. this makes
our stack unwinder happy, when we generate debug stack
@@ -33,14 +38,6 @@
of a corrupted malloc heap).
*/
-#include <linux/err.h>
-#include <sys/linux-syscalls.h>
-#include <machine/asm.h>
-
-#ifndef __NR_tkill
-#define __NR_tkill 238
-#endif
-
ENTRY(tkill)
stmfd sp!, {r4-r7, ip, lr}
ldr r7, =__NR_tkill