2013-10-16 23:27:59 +02:00
|
|
|
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
|
2013-03-22 06:15:06 +01:00
|
|
|
#include <asm/unistd.h>
|
2014-02-19 21:20:00 +01:00
|
|
|
#include <machine/asm.h>
|
|
|
|
#include <machine/regdef.h>
|
2012-01-28 02:51:42 +01:00
|
|
|
.text
|
|
|
|
.globl mprotect
|
|
|
|
.align 4
|
|
|
|
.ent mprotect
|
|
|
|
|
|
|
|
mprotect:
|
|
|
|
.set noreorder
|
2014-02-19 21:20:00 +01:00
|
|
|
.cpload t9
|
|
|
|
li v0, __NR_mprotect
|
2012-01-28 02:51:42 +01:00
|
|
|
syscall
|
2014-02-19 21:20:00 +01:00
|
|
|
bnez a3, 1f
|
|
|
|
move a0, v0
|
|
|
|
j ra
|
2012-01-28 02:51:42 +01:00
|
|
|
nop
|
|
|
|
1:
|
2014-02-19 21:20:00 +01:00
|
|
|
la t9,__set_errno
|
|
|
|
j t9
|
2012-01-28 02:51:42 +01:00
|
|
|
nop
|
|
|
|
.set reorder
|
|
|
|
.end mprotect
|