summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2019-02-26 14:19:46 -0800
committerOri Bernstein <ori@markovcorp.com>2019-02-26 14:19:46 -0800
commitf238030498f6b30f6d11e000b053e6f5154e4702 (patch)
treeb8d8427cd7a6e79a6627ab1c2e677fcdb12bb535
parentd87c0959d85b40fcf60b9c6dd0a2f2111f888b55 (diff)
downloadmc-f238030498f6b30f6d11e000b053e6f5154e4702.tar.gz
Hook in __fini__ on 9front.
-rw-r--r--lib/sys/sys+plan9-x64.myr1
-rw-r--r--rt/_myrrt-plan9.s2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/sys/sys+plan9-x64.myr b/lib/sys/sys+plan9-x64.myr
index 5fc0637..547062f 100644
--- a/lib/sys/sys+plan9-x64.myr
+++ b/lib/sys/sys+plan9-x64.myr
@@ -173,7 +173,6 @@ pkg sys =
const atexit : (fn : (-> void) -> void)
- pkglocal const __fini__ : (-> void)
;;
var exitfn : (-> void)[128]
diff --git a/rt/_myrrt-plan9.s b/rt/_myrrt-plan9.s
index 9e2a08e..e56d382 100644
--- a/rt/_myrrt-plan9.s
+++ b/rt/_myrrt-plan9.s
@@ -58,7 +58,7 @@ TEXT _main(SB), 1, $(72+NPRIVATES*8)
CALL main(SB)
POPQ DX
POPQ R13
- CALL sys$__fini__(SB)
+ CALL __fini__(SB)
exitloop:
MOVQ $0,8(SP)