From 1ad05db9cef23c1ca28ffd51852fa2a0b0c9b4b7 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 6 Sep 2012 11:24:45 -0700 Subject: Add mlockall and munlockall for Google TV. Change-Id: I10e961d701e74aab07211ec7975f61167e387853 --- libc/arch-mips/syscalls/mlockall.S | 22 ++++++++++++++++++++++ libc/arch-mips/syscalls/munlockall.S | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 libc/arch-mips/syscalls/mlockall.S create mode 100644 libc/arch-mips/syscalls/munlockall.S (limited to 'libc/arch-mips/syscalls') 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 + .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 diff --git a/libc/arch-mips/syscalls/munlockall.S b/libc/arch-mips/syscalls/munlockall.S new file mode 100644 index 0000000..20fa7b8 --- /dev/null +++ b/libc/arch-mips/syscalls/munlockall.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include + .text + .globl munlockall + .align 4 + .ent munlockall + +munlockall: + .set noreorder + .cpload $t9 + li $v0, __NR_munlockall + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end munlockall -- cgit v1.1