blob: 6a3752cd160584606dfe343b3f904eb10562ab2f [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 Hughescac7b9d2013-10-23 09:48:29 -07005 .globl dup3
Raghu Gandham1fa0d842012-01-27 17:51:42 -08006 .align 4
Elliott Hughescac7b9d2013-10-23 09:48:29 -07007 .ent dup3
Raghu Gandham1fa0d842012-01-27 17:51:42 -08008
Elliott Hughescac7b9d2013-10-23 09:48:29 -07009dup3:
Raghu Gandham1fa0d842012-01-27 17:51:42 -080010 .set noreorder
11 .cpload $t9
Elliott Hughescac7b9d2013-10-23 09:48:29 -070012 li $v0, __NR_dup3
Raghu Gandham1fa0d842012-01-27 17:51:42 -080013 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 Hughescac7b9d2013-10-23 09:48:29 -070023 .end dup3