summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/rt0_netbsd_386.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/rt0_netbsd_386.s')
-rw-r--r--src/pkg/runtime/rt0_netbsd_386.s12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/pkg/runtime/rt0_netbsd_386.s b/src/pkg/runtime/rt0_netbsd_386.s
index 829e4133b..b4c029c53 100644
--- a/src/pkg/runtime/rt0_netbsd_386.s
+++ b/src/pkg/runtime/rt0_netbsd_386.s
@@ -2,5 +2,13 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-TEXT _rt0_386_netbsd(SB),7,$0
- JMP _rt0_386(SB)
+TEXT _rt0_386_netbsd(SB),7,$8
+ MOVL 8(SP), AX
+ LEAL 12(SP), BX
+ MOVL AX, 0(SP)
+ MOVL BX, 4(SP)
+ CALL main(SB)
+ INT $3
+
+TEXT main(SB),7,$0
+ JMP _rt0_386(SB)