summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-14 14:51:30 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-14 14:51:30 -0800
commit920b587c66cc2bb5169a117500deb9f8b00127fd (patch)
treefa78cd059c021511f87906a5fc66a7cc00b2750e /rt
parent377381aa9dcdc3a004faac1b06aa79d0e4fa9c98 (diff)
downloadmc-920b587c66cc2bb5169a117500deb9f8b00127fd.tar.gz
Add atexit for 9front.
A tad ugly, but a start. Maybe we'll figure something better out soon.
Diffstat (limited to 'rt')
-rw-r--r--rt/_myrrt-plan9.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/rt/_myrrt-plan9.s b/rt/_myrrt-plan9.s
index 4b76fdf..e52e160 100644
--- a/rt/_myrrt-plan9.s
+++ b/rt/_myrrt-plan9.s
@@ -62,6 +62,7 @@ TEXT _main(SB), 1, $(2*8+NPRIVATES*8)
CALL main(SB)
POPQ DX
POPQ R13
+ CALL sys$__fini__(SB)
exitloop:
MOVQ $0,8(SP)