summaryrefslogtreecommitdiffstats
path: root/libc/arch-sh/syscalls/kill.S
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2009-10-14 08:18:23 -0700
committerJean-Baptiste Queru <jbq@google.com>2009-10-14 08:18:23 -0700
commit73981476a389847e8537cca37503c43e107fadc9 (patch)
treea60ed9cc386c36ef6937974e0a729c5d429c57b5 /libc/arch-sh/syscalls/kill.S
parent60c221ccfaf67bdd9cadfd151d0bad9d3f8482ce (diff)
parent4e30c09e57a0351daff70f6657794569445be21c (diff)
downloadbionic-73981476a389847e8537cca37503c43e107fadc9.zip
bionic-73981476a389847e8537cca37503c43e107fadc9.tar.gz
bionic-73981476a389847e8537cca37503c43e107fadc9.tar.bz2
merge from open-source master
Diffstat (limited to 'libc/arch-sh/syscalls/kill.S')
-rw-r--r--libc/arch-sh/syscalls/kill.S32
1 files changed, 32 insertions, 0 deletions
diff --git a/libc/arch-sh/syscalls/kill.S b/libc/arch-sh/syscalls/kill.S
new file mode 100644
index 0000000..d331cde
--- /dev/null
+++ b/libc/arch-sh/syscalls/kill.S
@@ -0,0 +1,32 @@
+/* autogenerated by gensyscalls.py */
+#include <sys/linux-syscalls.h>
+
+ .text
+ .type kill, @function
+ .globl kill
+ .align 4
+
+kill:
+
+ /* invoke trap */
+ mov.l 0f, r3 /* trap num */
+ trapa #(2 + 0x10)
+
+ /* check return value */
+ cmp/pz r0
+ bt __NR_kill_end
+
+ /* keep error number */
+ sts.l pr, @-r15
+ mov.l 1f, r1
+ jsr @r1
+ mov r0, r4
+ lds.l @r15+, pr
+
+__NR_kill_end:
+ rts
+ nop
+
+ .align 2
+0: .long __NR_kill
+1: .long __set_syscall_errno