diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-11 07:09:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-11 07:09:23 +0000 |
commit | 0df69adda242dd1a83468cec48cbac36ad123106 (patch) | |
tree | 162c2aed97396b75c1cb9552880f6fdae633e4e1 /lib/libc/arch | |
parent | 8ea7c536a5e4ba4c6a80cc56212a81ca1c435663 (diff) |
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 |