diff options
author | 2004-02-11 07:09:22 +0000 | |
---|---|---|
committer | 2004-02-11 07:09:22 +0000 | |
commit | f8e62076dc1944d29be2f15e78997edd2d4a9d2d (patch) | |
tree | 5ea98f4fcc448bb0e3f60d9fb5d63a27dc048574 /lib/libc/arch | |
parent | Remove duplicates with <sys/conf.h>; ok drahn@ (diff) | |
download | wireguard-openbsd-f8e62076dc1944d29be2f15e78997edd2d4a9d2d.tar.xz wireguard-openbsd-f8e62076dc1944d29be2f15e78997edd2d4a9d2d.zip |
correct syscall() stub; fixes perl and vi.recover
Diffstat (limited to 'lib/libc/arch')
-rw-r--r-- | lib/libc/arch/amd64/sys/syscall.S | 5 | ||||
-rw-r--r-- | lib/libc/arch/x86_64/sys/syscall.S | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/arch/amd64/sys/syscall.S b/lib/libc/arch/amd64/sys/syscall.S index 19b798dbc92..ca64daf7ccf 100644 --- a/lib/libc/arch/amd64/sys/syscall.S +++ b/lib/libc/arch/amd64/sys/syscall.S @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */ +/* $OpenBSD: syscall.S,v 1.2 2004/02/11 07:09:22 deraadt Exp $ */ /* $NetBSD: syscall.S,v 1.2 2002/06/03 18:30:33 fvdl Exp $ */ /*- @@ -44,7 +44,8 @@ #include "SYS.h" SYSENTRY(syscall) - movl %edi,%eax + movq $0,%rax + movq %rcx,%r10 syscall jc err ret diff --git a/lib/libc/arch/x86_64/sys/syscall.S b/lib/libc/arch/x86_64/sys/syscall.S index 19b798dbc92..ca64daf7ccf 100644 --- a/lib/libc/arch/x86_64/sys/syscall.S +++ b/lib/libc/arch/x86_64/sys/syscall.S @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */ +/* $OpenBSD: syscall.S,v 1.2 2004/02/11 07:09:22 deraadt Exp $ */ /* $NetBSD: syscall.S,v 1.2 2002/06/03 18:30:33 fvdl Exp $ */ /*- @@ -44,7 +44,8 @@ #include "SYS.h" SYSENTRY(syscall) - movl %edi,%eax + movq $0,%rax + movq %rcx,%r10 syscall jc err ret |