summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-24 13:41:53 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-24 13:41:53 -0800
commit5e0ca55f184256a7a3868843bec2922b56a1126f (patch)
tree71cb9c5d577df29c4084e90835e826b35bba12f4 /rt
parent193c0a031b36a4d6d0ca90bb56d1427fd1b15bc0 (diff)
downloadmc-5e0ca55f184256a7a3868843bec2922b56a1126f.tar.gz
Get plan9 even closer to workingness.
A few more oddities.
Diffstat (limited to 'rt')
-rw-r--r--rt/_myrrt-plan9.s20
1 files changed, 14 insertions, 6 deletions
diff --git a/rt/_myrrt-plan9.s b/rt/_myrrt-plan9.s
index c9d5853..31e8011 100644
--- a/rt/_myrrt-plan9.s
+++ b/rt/_myrrt-plan9.s
@@ -9,11 +9,19 @@ TEXT _main(SB), 1, $(2*8+NPRIVATES*8)
LEAQ inargv+0(FP), AX
MOVQ AX, 8(SP)
CALL main(SB)
+exitloop:
+ MOVQ $0,estatus+0(FP)
+ MOVQ $8,RARG
+ SYSCALL
+ JMP exitloop
-loop:
- MOVQ $_exits<>(SB), RARG
- CALL exits(SB)
- JMP loop
+TEXT _rt$abort_oob(SB),1,$0
+broke:
+ XORQ AX,AX
+ MOVQ $1234,(AX)
+ JMP broke
-DATA _exits<>+0(SB)/4, $"main"
-GLOBL _exits<>+0(SB), $5
+GLOBL argv0(SB), $8
+GLOBL _tos(SB), $8
+GLOBL _privates(SB), $8
+GLOBL _nprivates(SB), $4