blob: abfdafb2661a4a798e23e7c20c4d6ff995ae9790 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughes5c2772f2013-03-21 22:15:06 -07003#include <asm/unistd.h>
Raghu Gandham1fa0d842012-01-27 17:51:42 -08004 .text
Elliott Hughes232163c2013-10-09 17:35:36 -07005 .globl setuid
Raghu Gandham1fa0d842012-01-27 17:51:42 -08006 .align 4
Elliott Hughes232163c2013-10-09 17:35:36 -07007 .ent setuid
Raghu Gandham1fa0d842012-01-27 17:51:42 -08008
Elliott Hughes232163c2013-10-09 17:35:36 -07009setuid:
Raghu Gandham1fa0d842012-01-27 17:51:42 -080010 .set noreorder
11 .cpload $t9
12 li $v0, __NR_setuid
13 syscall
14 bnez $a3, 1f
15 move $a0, $v0
16 j $ra
17 nop
181:
19 la $t9,__set_errno
20 j $t9
21 nop
22 .set reorder
Elliott Hughes232163c2013-10-09 17:35:36 -070023 .end setuid