From e36c826f7a6580227e9e70f6ec70aa88ba0f577e Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 10 Aug 2012 11:17:59 -0700 Subject: Add unshare() syscall. (cherry-pick of 5467f25f82934d611c60f8bc57a05114f3c1bea0.) Bug: 6925012 Change-Id: Ic5ea2fbd606311087de05d7a3594df2fa9b2fef9 --- libc/arch-mips/syscalls/unshare.S | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libc/arch-mips/syscalls/unshare.S (limited to 'libc/arch-mips/syscalls') diff --git a/libc/arch-mips/syscalls/unshare.S b/libc/arch-mips/syscalls/unshare.S new file mode 100644 index 0000000..11af354 --- /dev/null +++ b/libc/arch-mips/syscalls/unshare.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include + .text + .globl unshare + .align 4 + .ent unshare + +unshare: + .set noreorder + .cpload $t9 + li $v0, __NR_unshare + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end unshare -- cgit v1.1