summaryrefslogtreecommitdiff
path: root/src/thread/aarch64/__unmapself.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/aarch64/__unmapself.s')
-rw-r--r--src/thread/aarch64/__unmapself.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/thread/aarch64/__unmapself.s b/src/thread/aarch64/__unmapself.s
new file mode 100644
index 00000000..2c5d254f
--- /dev/null
+++ b/src/thread/aarch64/__unmapself.s
@@ -0,0 +1,7 @@
+.global __unmapself
+.type __unmapself,%function
+__unmapself:
+ mov x8,#215 // SYS_munmap
+ svc 0
+ mov x8,#93 // SYS_exit
+ svc 0