summaryrefslogtreecommitdiff
path: root/klibc/klibc/arch/mips/pipe.S
blob: d79f614025cea32a09a148c9f6b4576d44595561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <asm/asm.h>
#include <asm/regdef.h>
#include <asm/unistd.h>

LEAF(pipe)
	li	v0, __NR_pipe
	syscall
	bnez	a3, 1f
	sw	v0, (a0)
	sw	v1, (a1)
	li	v0, 0
	b	2f
1:	sw	v0, errno
	li	v0, -1
2:	jr	ra
	END(pipe)