ref: ba10ad8dba18db7dfcb934f67e23e405d7601ac5
parent: 3f5b9c674dc0f3e9e43d17acf1b7cfbb409b89d1
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Oct 8 07:50:00 EDT 2017
Add kbind() calls. OpenBSD expects that this is called after the runtime is done its initial setup. It's likely to care more in the future.
--- a/rt/start-openbsd.s
+++ b/rt/start-openbsd.s
@@ -45,6 +45,12 @@
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 */