summaryrefslogtreecommitdiff
path: root/src/thread/riscv64/__unmapself.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/riscv64/__unmapself.s')
-rw-r--r--src/thread/riscv64/__unmapself.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/thread/riscv64/__unmapself.s b/src/thread/riscv64/__unmapself.s
new file mode 100644
index 00000000..2849119c
--- /dev/null
+++ b/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