summaryrefslogtreecommitdiff
path: root/rt/start-openbsd.s
diff options
context:
space:
mode:
Diffstat (limited to 'rt/start-openbsd.s')
-rw-r--r--rt/start-openbsd.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/rt/start-openbsd.s b/rt/start-openbsd.s
index ad62bf4..b96e12b 100644
--- a/rt/start-openbsd.s
+++ b/rt/start-openbsd.s
@@ -45,6 +45,12 @@ _start:
call cvt
xorq %rbp,%rbp
+ /* done startup; call kbind */
+ movq $0,%rdi /* param */
+ movq $0,%rsi /* size */
+ movq $0,%rdx /* cookie */
+ movq $86,%rax /* Syskbind */
+ syscall
/* call pre-main initializers */
call __init__
/* enter the main program */