From 0df69adda242dd1a83468cec48cbac36ad123106 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 11 Feb 2004 07:09:23 +0000 Subject: correct syscall() stub; fixes perl and vi.recover --- lib/libc/arch/amd64/sys/syscall.S | 5 +++-- lib/libc/arch/x86_64/sys/syscall.S | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3