diff options
author | Ori Bernstein <ori@eigenstate.org> | 2017-10-08 11:50:00 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2017-10-08 11:50:00 -0700 |
commit | ba10ad8dba18db7dfcb934f67e23e405d7601ac5 (patch) | |
tree | 0c55562a36a2e1606fe124ec29d94d757c429f6d /rt/start-openbsd.s | |
parent | 3f5b9c674dc0f3e9e43d17acf1b7cfbb409b89d1 (diff) | |
download | mc-ba10ad8dba18db7dfcb934f67e23e405d7601ac5.tar.gz |
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.
Diffstat (limited to 'rt/start-openbsd.s')
-rw-r--r-- | rt/start-openbsd.s | 6 |
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 */ |