From 336efb5267e465ac52d78327d37f79553b3f0584 Mon Sep 17 00:00:00 2001 From: Tony Sim Date: Wed, 1 Jul 2009 15:35:27 +0900 Subject: added syscalls for SuperH which automatically generate by gensyscalls.py --- libc/arch-sh/syscalls/rename.S | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 libc/arch-sh/syscalls/rename.S (limited to 'libc/arch-sh/syscalls/rename.S') 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 + + .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 -- cgit v1.1