summaryrefslogtreecommitdiffstats
path: root/libc/arch-sh/syscalls/rename.S
diff options
context:
space:
mode:
authorTony Sim <sim.chinyeow@renesas.com>2009-07-01 15:35:27 +0900
committerTony Sim <sim.chinyeow@renesas.com>2009-07-01 15:35:27 +0900
commit336efb5267e465ac52d78327d37f79553b3f0584 (patch)
tree5113da0deda9f253fd6964e129132b8a2fb8545e /libc/arch-sh/syscalls/rename.S
parent90ec5f2a3f581927ffef55733e8d531890fdc90e (diff)
downloadbionic-336efb5267e465ac52d78327d37f79553b3f0584.zip
bionic-336efb5267e465ac52d78327d37f79553b3f0584.tar.gz
bionic-336efb5267e465ac52d78327d37f79553b3f0584.tar.bz2
added syscalls for SuperH which automatically generate by gensyscalls.py
Diffstat (limited to 'libc/arch-sh/syscalls/rename.S')
-rw-r--r--libc/arch-sh/syscalls/rename.S32
1 files changed, 32 insertions, 0 deletions
diff --git a/libc/arch-sh/syscalls/rename.S b/libc/arch-sh/syscalls/rename.S
new file mode 100644
index 0000000..692f40e
--- /dev/null
+++ b/libc/arch-sh/syscalls/rename.S
@@ -0,0 +1,32 @@
+/* autogenerated by gensyscalls.py */
+#include <sys/linux-syscalls.h>
+
+ .text
+ .type rename, @function
+ .globl rename
+ .align 4
+
+rename:
+
+ /* invoke trap */
+ mov.l 0f, r3 /* trap num */
+ trapa #(2 + 0x10)
+
+ /* check return value */
+ cmp/pz r0
+ bt __NR_rename_end
+
+ /* keep error number */
+ sts.l pr, @-r15
+ mov.l 1f, r1
+ jsr @r1
+ mov r0, r4
+ lds.l @r15+, pr
+
+__NR_rename_end:
+ rts
+ nop
+
+ .align 2
+0: .long __NR_rename
+1: .long __set_syscall_errno