summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/alpha/pipe.S
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/alpha/pipe.S')
-rw-r--r--mdk-stage1/dietlibc/alpha/pipe.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/alpha/pipe.S b/mdk-stage1/dietlibc/alpha/pipe.S
new file mode 100644
index 000000000..3dfef10bf
--- /dev/null
+++ b/mdk-stage1/dietlibc/alpha/pipe.S
@@ -0,0 +1,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
+