diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2023-12-18 22:28:42 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2023-12-18 22:28:42 +0000 |
| commit | 8f465f509bc1b038806963f716263b56004871d3 (patch) | |
| tree | ea5a9d7dc22aa5cb775773241f0ba3906b597619 /lib/libc/amd64/sys | |
| parent | 300bbb3a43e3cc1337b827b72ff5a22c4321a317 (diff) | |
Diffstat (limited to 'lib/libc/amd64/sys')
| -rw-r--r-- | lib/libc/amd64/sys/getcontext.S | 3 | ||||
| -rw-r--r-- | lib/libc/amd64/sys/vfork.S | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/amd64/sys/getcontext.S b/lib/libc/amd64/sys/getcontext.S index 6860a3cf9bef..c3a856c879f8 100644 --- a/lib/libc/amd64/sys/getcontext.S +++ b/lib/libc/amd64/sys/getcontext.S @@ -36,8 +36,7 @@ WEAK_REFERENCE(__sys_getcontext, getcontext) ENTRY(__sys_getcontext) movq (%rsp),%rsi /* save getcontext return address */ - mov $SYS_getcontext,%rax - KERNCALL + _SYSCALL(getcontext) jb HIDENAME(cerror) addq $8,%rsp /* remove stale (setcontext) return address */ jmp *%rsi /* restore return address */ diff --git a/lib/libc/amd64/sys/vfork.S b/lib/libc/amd64/sys/vfork.S index 3714a742bc15..e3c5f701dcff 100644 --- a/lib/libc/amd64/sys/vfork.S +++ b/lib/libc/amd64/sys/vfork.S @@ -37,8 +37,7 @@ WEAK_REFERENCE(__sys_vfork, vfork) ENTRY(__sys_vfork) popq %rsi /* fetch return address (%rsi preserved) */ - mov $SYS_vfork,%rax - KERNCALL + _SYSCALL(vfork) jb 1f jmp *%rsi 1: |
