summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-15 00:36:49 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-15 00:36:49 -0700
commit21f523cc81a93d8fd88391d251bfe3ca88ffa544 (patch)
tree7f0b9e4ad6689ee01b0cafc9290d06c4dfbdad3c /rt
parentf474cd1c2cdc0cd7a42e775c2059255453bb1777 (diff)
downloadmc-21f523cc81a93d8fd88391d251bfe3ca88ffa544.tar.gz
Fix successful exit on Plan 9.
I had mixed up ABIs. Unmix them up.
Diffstat (limited to 'rt')
-rw-r--r--rt/_myrrt-plan9.s3
1 files changed, 1 insertions, 2 deletions
diff --git a/rt/_myrrt-plan9.s b/rt/_myrrt-plan9.s
index a1b7964..7fd14a3 100644
--- a/rt/_myrrt-plan9.s
+++ b/rt/_myrrt-plan9.s
@@ -62,9 +62,8 @@ TEXT _main(SB), 1, $(2*8+NPRIVATES*8)
POPQ R13
exitloop:
- MOVQ $0,(SP)
+ MOVQ $0,8(SP)
MOVQ $8,RARG
- POPQ AX
SYSCALL
JMP exitloop