summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/alpha/getppid.S
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/alpha/getppid.S')
-rw-r--r--mdk-stage1/dietlibc/alpha/getppid.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/alpha/getppid.S b/mdk-stage1/dietlibc/alpha/getppid.S
new file mode 100644
index 000000000..e181268c3
--- /dev/null
+++ b/mdk-stage1/dietlibc/alpha/getppid.S
@@ -0,0 +1,11 @@
+.text
+.align 2
+.global getppid
+getppid:
+ lda $sp,-8($sp)
+ stq $26, 0($sp)
+ jsr getpid
+ ldq $26, 0($sp)
+ lda $sp, 8($sp)
+ cmovge $0, $20, $0
+ ret