1999-01-15 01:48:18 +03:00
|
|
|
/* $NetBSD: pipe.S,v 1.5 1999/01/14 22:48:21 kleink Exp $ */
|
1997-03-29 23:55:50 +03:00
|
|
|
|
|
|
|
#include "SYS.h"
|
|
|
|
|
|
|
|
ENTRY(pipe)
|
1998-05-25 19:35:06 +04:00
|
|
|
mr 5,3 # save pointer
|
1997-03-29 23:55:50 +03:00
|
|
|
li 0,SYS_pipe
|
|
|
|
sc # assume, that r5 is kept
|
|
|
|
bso 1f
|
|
|
|
stw 3,0(5) # success, store fds
|
|
|
|
stw 4,4(5)
|
|
|
|
li 3,0
|
|
|
|
blr # and return 0
|
|
|
|
1:
|
1999-01-15 01:48:18 +03:00
|
|
|
b PIC_PLT(_C_LABEL(__cerror))
|