aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-08-19 03:24:47 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-08-19 03:24:47 +0000
commitaa62551b4db9dd218251d6e5d5bae4f36f229821 (patch)
tree6e18d69ceba66313c124c3d8e3251dd56c609e87
parent069a8afdaaf23414e7c5c5325f20fd4a7b80b1cf (diff)
downloadklibc-aa62551b4db9dd218251d6e5d5bae4f36f229821.tar.gz
The ABI document is correct w.r.t. _syscall5().klibc-0.53
-rw-r--r--include/arch/x86_64/klibc/archsys.h4
-rw-r--r--klibc/arch/x86_64/include/klibc/archsys.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/arch/x86_64/klibc/archsys.h b/include/arch/x86_64/klibc/archsys.h
index 060253228b8bf..e52a19aebe229 100644
--- a/include/arch/x86_64/klibc/archsys.h
+++ b/include/arch/x86_64/klibc/archsys.h
@@ -17,8 +17,8 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
{ \
long __res; \
register long __r10 asm("%r10") = (long)arg4;
-register long __r9 asm("%r9") = (long)arg5; /* Should be %r8 per the docs*/
-register long __r8 asm("%r8") = (long)arg6; /* Should be %r9 per the docs */
+register long __r8 asm("%r8") = (long)arg5;
+register long __r9 asm("%r9") = (long)arg6;
__asm__ volatile (__syscall \
: "=a" (__res) \
: "0" (__NR_##name),"D" ((long)(arg1)),"S" ((long)(arg2)), \
diff --git a/klibc/arch/x86_64/include/klibc/archsys.h b/klibc/arch/x86_64/include/klibc/archsys.h
index 060253228b8bf..e52a19aebe229 100644
--- a/klibc/arch/x86_64/include/klibc/archsys.h
+++ b/klibc/arch/x86_64/include/klibc/archsys.h
@@ -17,8 +17,8 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
{ \
long __res; \
register long __r10 asm("%r10") = (long)arg4;
-register long __r9 asm("%r9") = (long)arg5; /* Should be %r8 per the docs*/
-register long __r8 asm("%r8") = (long)arg6; /* Should be %r9 per the docs */
+register long __r8 asm("%r8") = (long)arg5;
+register long __r9 asm("%r9") = (long)arg6;
__asm__ volatile (__syscall \
: "=a" (__res) \
: "0" (__NR_##name),"D" ((long)(arg1)),"S" ((long)(arg2)), \