summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/thread/riscv64/__unmapself.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/thread/riscv64/__unmapself.s')
-rw-r--r--libc-top-half/musl/src/thread/riscv64/__unmapself.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/thread/riscv64/__unmapself.s b/libc-top-half/musl/src/thread/riscv64/__unmapself.s
new file mode 100644
index 0000000..2849119
--- /dev/null
+++ b/libc-top-half/musl/src/thread/riscv64/__unmapself.s
@@ -0,0 +1,7 @@
+.global __unmapself
+.type __unmapself, %function
+__unmapself:
+ li a7, 215 # SYS_munmap
+ ecall
+ li a7, 93 # SYS_exit
+ ecall