diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2009-10-14 08:18:23 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2009-10-14 08:18:23 -0700 |
commit | 73981476a389847e8537cca37503c43e107fadc9 (patch) | |
tree | a60ed9cc386c36ef6937974e0a729c5d429c57b5 /libc/arch-sh/syscalls/kill.S | |
parent | 60c221ccfaf67bdd9cadfd151d0bad9d3f8482ce (diff) | |
parent | 4e30c09e57a0351daff70f6657794569445be21c (diff) | |
download | bionic-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.S | 32 |
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 |