File:  [DVB] / dietlibc / sparc64 / pipe.S
Revision 1.2: download - view: text, annotated - select for diffs
Thu May 15 15:17:10 2003 UTC (21 years ago) by sanjiyan
Branches: MAIN
CVS tags: HEAD
- removing "<arch>/mmap.*" where no arch-specific impementation is needed.
  (added "syscalls.s/mmap.S")

- fixing the vsyscall in the dynamic library... (self made problem)

- removing warning in "res_query.c"

- changing type of stream-mutex to recursive

- sparc/sparc64: shrink of the unified syscall and the special syscalls
  (fork/pipe) to use the "unified_syscall_error_handler"

#include "syscalls.h"

.text
.global pipe
pipe:
	mov	%o0, %o2
	mov	__NR_pipe, %g1
	ta	0x6d
	bcs,pn	%xcc, 1f
	nop
	st	%o0, [ %o2 ]
	st	%o1, [ %o2 + 4 ]
	retl
	mov	%g0, %o0

1:	sethi	%hi(__unified_syscall_error_handler), %g1
	jmp	%g1+%lo(__unified_syscall_error_handler)
	nop

LinuxTV legacy CVS <linuxtv.org/cvs>