From 1fa0d849576555577ffd9675677a3c95f21b754e Mon Sep 17 00:00:00 2001 From: Raghu Gandham Date: Fri, 27 Jan 2012 17:51:42 -0800 Subject: [MIPS] Add support for MIPS syscalls Change-Id: I4deba67e15c865c4c2db03064c04098a09828ea6 Signed-off-by: Raghu Gandham Signed-off-by: Chris Dearman --- libc/arch-mips/syscalls/klogctl.S | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libc/arch-mips/syscalls/klogctl.S (limited to 'libc/arch-mips/syscalls/klogctl.S') diff --git a/libc/arch-mips/syscalls/klogctl.S b/libc/arch-mips/syscalls/klogctl.S new file mode 100644 index 0000000..8c41dcf --- /dev/null +++ b/libc/arch-mips/syscalls/klogctl.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include + .text + .globl klogctl + .align 4 + .ent klogctl + +klogctl: + .set noreorder + .cpload $t9 + li $v0, __NR_syslog + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end klogctl -- cgit v1.1