summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authorRichard Pennington <rich@pennware.com>2012-11-09 23:32:57 +0100
committerrofl0r <retnyg@gmx.net>2012-11-13 18:15:10 +0100
commit7669d1e334e6b96455eece78da43bf830b93d697 (patch)
tree6649acfaa61ec6780498b55fa8015ca4f7a6cdae /src/thread
parent1e717ea3d2a864e00e507f1a70a892c551955f1b (diff)
downloadmusl-7669d1e334e6b96455eece78da43bf830b93d697.tar.gz
musl-7669d1e334e6b96455eece78da43bf830b93d697.tar.bz2
musl-7669d1e334e6b96455eece78da43bf830b93d697.tar.xz
musl-7669d1e334e6b96455eece78da43bf830b93d697.zip
import preliminary ppc work by rdp.
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/ppc/__unmapself.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/thread/ppc/__unmapself.S b/src/thread/ppc/__unmapself.S
new file mode 100644
index 00000000..e14663e7
--- /dev/null
+++ b/src/thread/ppc/__unmapself.S
@@ -0,0 +1,11 @@
+#include <bits/asm.h>
+#include <bits/syscall.h>
+ .text
+ .global __unmapself
+ .type __unmapself,%function
+__unmapself:
+ li r0, __NR_munmap
+ sc
+ li r0, __NR_exit
+ sc
+ blr