[PATCH] syscall.2: fix wrong retval register number in alpha architecture

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



alpha use v0 e.g. $0 as the return value register both in
syscall abi and C abi.

see also
https://github.com/torvalds/linux/blob/master/arch/alpha/kernel/entry.S#L479


diff --git a/man2/syscall.2 b/man2/syscall.2
index 3f4d64c..11e1416 100644
--- a/man2/syscall.2
+++ b/man2/syscall.2
@@ -181,7 +181,7 @@ and the register used to signal an error.
 l2     l2      l2      l2      l2      l.
 arch/ABI       instruction     syscall #       retval  error   Notes
 _
-alpha  callsys v0      a0      a3      [1]
+alpha  callsys v0      v0      a3      [1]
 arc    trap0   r8      r0      -
 arm/OABI       swi NR  -       a1      -       [2]
 arm/EABI       swi 0x0 r7      r0      -
commit 09b5bba4f9ba5fe1d5548aaef54cda71e6879b66
Author: snyh <snyh@xxxxxxxx>
Date:   Mon Dec 3 09:48:38 2018 +0800

    syscall.2: fix wrong retval register number in alpha architecture
    
    alpha use v0 e.g. $0 as the return value register both in
    syscall abi and C abi.
    
    see also
    https://github.com/torvalds/linux/blob/master/arch/alpha/kernel/entry.S#L479

diff --git a/man2/syscall.2 b/man2/syscall.2
index 3f4d64c..11e1416 100644
--- a/man2/syscall.2
+++ b/man2/syscall.2
@@ -181,7 +181,7 @@ and the register used to signal an error.
 l2	l2	l2	l2	l2	l.
 arch/ABI	instruction	syscall #	retval	error	Notes
 _
-alpha	callsys	v0	a0	a3	[1]
+alpha	callsys	v0	v0	a3	[1]
 arc	trap0	r8	r0	-
 arm/OABI	swi NR	-	a1	-	[2]
 arm/EABI	swi 0x0	r7	r0	-

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux