Expand PMF_FN_* macros.
[netbsd-mini2440.git] / lib / libc / arch / powerpc64 / sys / pipe.S
blob7933e6efac2834c89c01f3ac211292ba211d3d23
1 /*      $NetBSD: pipe.S,v 1.7 2002/07/30 06:08:00 matt Exp $    */
3 #include "SYS.h"
5 #ifdef WEAK_ALIAS
6 WEAK_ALIAS(pipe, _pipe)
7 #endif
9 ENTRY(_pipe)
10         mr      %r5,%r3         # save pointer
11         li      %r0,SYS_pipe
12         sc                      # assume, that r5 is kept
13         bso     1f
14         stw     %r3,0(%r5)      # success, store fds
15         stw     %r4,4(%r5)
16         li      %r3,0
17         blr                     # and return 0
19         b       PIC_PLT(_C_LABEL(__cerror))