summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/alpha/pipe.S
blob: 3dfef10bf5c32009ef64033c171417a9734b87c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "syscalls.h"

.text
.align 2
.global pipe
.type pipe,@function
pipe:
        lda     $0, __NR_pipe($31)
        callsys
        bne     $19, .Lerror
        stl     $0,  0($16)
        stl     $20, 4($16)
        clr     $0
        ret     $31, ($26), 0x01
.Lerror:
        br      error_unified_syscall