summaryrefslogtreecommitdiffstats
path: root/libc/arch-mips/syscalls/mlockall.S
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-09-06 11:24:45 -0700
committerElliott Hughes <enh@google.com>2012-09-06 11:24:45 -0700
commit1ad05db9cef23c1ca28ffd51852fa2a0b0c9b4b7 (patch)
tree23595a588bdd3a9bfb5c223e4cc7bc39b8dd84d9 /libc/arch-mips/syscalls/mlockall.S
parent6e3b0f2d2e89a8f3bbfc5d26dcdc13233c1111ba (diff)
downloadbionic-1ad05db9cef23c1ca28ffd51852fa2a0b0c9b4b7.zip
bionic-1ad05db9cef23c1ca28ffd51852fa2a0b0c9b4b7.tar.gz
bionic-1ad05db9cef23c1ca28ffd51852fa2a0b0c9b4b7.tar.bz2
Add mlockall and munlockall for Google TV.
Change-Id: I10e961d701e74aab07211ec7975f61167e387853
Diffstat (limited to 'libc/arch-mips/syscalls/mlockall.S')
-rw-r--r--libc/arch-mips/syscalls/mlockall.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/arch-mips/syscalls/mlockall.S b/libc/arch-mips/syscalls/mlockall.S
new file mode 100644
index 0000000..393c090
--- /dev/null
+++ b/libc/arch-mips/syscalls/mlockall.S
@@ -0,0 +1,22 @@
+/* autogenerated by gensyscalls.py */
+#include <sys/linux-syscalls.h>
+ .text
+ .globl mlockall
+ .align 4
+ .ent mlockall
+
+mlockall:
+ .set noreorder
+ .cpload $t9
+ li $v0, __NR_mlockall
+ syscall
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
+ nop
+1:
+ la $t9,__set_errno
+ j $t9
+ nop
+ .set reorder
+ .end mlockall