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
|
2013-10-23 18:48:29 +02:00
|
|
|
.globl dup3
|
2012-01-28 02:51:42 +01:00
|
|
|
.align 4
|
2013-10-23 18:48:29 +02:00
|
|
|
.ent dup3
|
2012-01-28 02:51:42 +01:00
|
|
|
|
2013-10-23 18:48:29 +02:00
|
|
|
dup3:
|
2012-01-28 02:51:42 +01:00
|
|
|
.set noreorder
|
2014-02-19 21:20:00 +01:00
|
|
|
.cpload t9
|
|
|
|
li v0, __NR_dup3
|
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
|
2013-10-23 18:48:29 +02:00
|
|
|
.end dup3
|