File:  [DVB] / dietlibc / mips / pipe.S
Revision 1.4: download - view: text, annotated - select for diffs
Mon Jun 6 11:59:21 2016 UTC (8 years ago) by leitner
Branches: MAIN
CVS tags: HEAD
  mips64 little endian port (Christian Seiler)

#include "syscalls.h"
#include "mips-asm.h"

#define v0      2      /* return value */
#define v1      3      /* return value */
#define a0      4      /* argument registers */
#define a3      7
#define ra      31     /* return address */

	.text
	.align	2
	.globl	pipe
	.ent	pipe
pipe:
	li	$v0,__NR_pipe
	syscall
	bnez	$a3,.Lerror
	sw	$v0,0($a0)
	sw	$v1,4($a0)
	move	$v0,$0
	jr      $ra
.Lerror:
	PTR_LA	$25, error_unified_syscall
	jr	$25
.end pipe

LinuxTV legacy CVS <linuxtv.org/cvs>