diff options
Diffstat (limited to 'lib/libc')
-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 |