summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/rt0_plan9_386.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/rt0_plan9_386.s')
-rw-r--r--src/pkg/runtime/rt0_plan9_386.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/runtime/rt0_plan9_386.s b/src/pkg/runtime/rt0_plan9_386.s
index 56f3a0f6c..7af1eae7c 100644
--- a/src/pkg/runtime/rt0_plan9_386.s
+++ b/src/pkg/runtime/rt0_plan9_386.s
@@ -26,6 +26,13 @@ argv_fix:
LOOP argv_fix
CALL runtime·asminit(SB)
+
+ MOVL 0(SP), AX
+ LEAL 4(SP), BX
+ PUSHL BX
+ PUSHL AX
+ PUSHL $-1
+
JMP _rt0_386(SB)
DATA runtime·isplan9(SB)/4, $1