From: Russell King - ARM Linux admin <linux@armlinux.org.uk> To: Dave Martin <Dave.Martin@arm.com> Cc: Michael Kerrisk <mtk.manpages@gmail.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, linux-man@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] syscall.2: arm: Use real register names for arm/OABI Date: Tue, 5 May 2020 16:26:58 +0100 [thread overview] Message-ID: <20200505152658.GL1551@shell.armlinux.org.uk> (raw) In-Reply-To: <1588692280-15878-2-git-send-email-Dave.Martin@arm.com> On Tue, May 05, 2020 at 04:24:39PM +0100, Dave Martin wrote: > The arm OABI syscall interface is currently documented in terms of > register name aliases defined by the ARM Procedure Call Standard > (APCS). However, these don't make sense in the context of a binary > interface that doesn't comply (or need to comply) with APCS. > > Use the real architectural register names instead. > > The names a1-a4, v1... are just aliases for r0-r3, r4... anyway, so > the interface is just the same regardless of which set of names is > used. > > Signed-off-by: Dave Martin <Dave.Martin@arm.com> Thanks Dave, Acked-by: Russell King <rmk+kernel@armlinux.org.uk> > --- > man2/syscall.2 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/man2/syscall.2 b/man2/syscall.2 > index f2b277b..53ab40e 100644 > --- a/man2/syscall.2 > +++ b/man2/syscall.2 > @@ -201,7 +201,7 @@ Arch/ABI Instruction System Ret Ret Error Notes > _ > alpha callsys v0 v0 a4 a3 1, 6 > arc trap0 r8 r0 - - > -arm/OABI swi NR - a1 - - 2 > +arm/OABI swi NR - r0 - - 2 > arm/EABI swi 0x0 r7 r0 r1 - > arm64 svc #0 x8 x0 x1 - > blackfin excpt 0x0 P0 R0 - - > @@ -332,7 +332,7 @@ Arch/ABI arg1 arg2 arg3 arg4 arg5 arg6 arg7 Notes > _ > alpha a0 a1 a2 a3 a4 a5 - > arc r0 r1 r2 r3 r4 r5 - > -arm/OABI a1 a2 a3 a4 v1 v2 v3 > +arm/OABI r0 r1 r2 r3 r4 r5 r6 > arm/EABI r0 r1 r2 r3 r4 r5 r6 > arm64 x0 x1 x2 x3 x4 x5 - > blackfin R0 R1 R2 R3 R4 R5 - > -- > 2.1.4 > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up
WARNING: multiple messages have this Message-ID (diff)
From: Russell King - ARM Linux admin <linux@armlinux.org.uk> To: Dave Martin <Dave.Martin@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Michael Kerrisk <mtk.manpages@gmail.com>, linux-arm-kernel@lists.infradead.org, linux-man@vger.kernel.org Subject: Re: [PATCH 1/2] syscall.2: arm: Use real register names for arm/OABI Date: Tue, 5 May 2020 16:26:58 +0100 [thread overview] Message-ID: <20200505152658.GL1551@shell.armlinux.org.uk> (raw) In-Reply-To: <1588692280-15878-2-git-send-email-Dave.Martin@arm.com> On Tue, May 05, 2020 at 04:24:39PM +0100, Dave Martin wrote: > The arm OABI syscall interface is currently documented in terms of > register name aliases defined by the ARM Procedure Call Standard > (APCS). However, these don't make sense in the context of a binary > interface that doesn't comply (or need to comply) with APCS. > > Use the real architectural register names instead. > > The names a1-a4, v1... are just aliases for r0-r3, r4... anyway, so > the interface is just the same regardless of which set of names is > used. > > Signed-off-by: Dave Martin <Dave.Martin@arm.com> Thanks Dave, Acked-by: Russell King <rmk+kernel@armlinux.org.uk> > --- > man2/syscall.2 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/man2/syscall.2 b/man2/syscall.2 > index f2b277b..53ab40e 100644 > --- a/man2/syscall.2 > +++ b/man2/syscall.2 > @@ -201,7 +201,7 @@ Arch/ABI Instruction System Ret Ret Error Notes > _ > alpha callsys v0 v0 a4 a3 1, 6 > arc trap0 r8 r0 - - > -arm/OABI swi NR - a1 - - 2 > +arm/OABI swi NR - r0 - - 2 > arm/EABI swi 0x0 r7 r0 r1 - > arm64 svc #0 x8 x0 x1 - > blackfin excpt 0x0 P0 R0 - - > @@ -332,7 +332,7 @@ Arch/ABI arg1 arg2 arg3 arg4 arg5 arg6 arg7 Notes > _ > alpha a0 a1 a2 a3 a4 a5 - > arc r0 r1 r2 r3 r4 r5 - > -arm/OABI a1 a2 a3 a4 v1 v2 v3 > +arm/OABI r0 r1 r2 r3 r4 r5 r6 > arm/EABI r0 r1 r2 r3 r4 r5 r6 > arm64 x0 x1 x2 x3 x4 x5 - > blackfin R0 R1 R2 R3 R4 R5 - > -- > 2.1.4 > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-05-05 15:27 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-05 15:24 [PATCH 0/2] syscall.2: Minor register name fixes for arm/arm64 Dave Martin 2020-05-05 15:24 ` Dave Martin 2020-05-05 15:24 ` [PATCH 1/2] syscall.2: arm: Use real register names for arm/OABI Dave Martin 2020-05-05 15:24 ` Dave Martin 2020-05-05 15:26 ` Russell King - ARM Linux admin [this message] 2020-05-05 15:26 ` Russell King - ARM Linux admin 2020-05-05 15:53 ` Dave Martin 2020-05-05 15:53 ` Dave Martin 2020-05-06 10:05 ` Michael Kerrisk (man-pages) 2020-05-06 10:05 ` Michael Kerrisk (man-pages) 2020-05-06 10:34 ` Dave Martin 2020-05-06 10:34 ` Dave Martin 2020-05-05 15:24 ` [PATCH 2/2] syscall.2: arm64: Fix syscall number register size Dave Martin 2020-05-05 15:24 ` Dave Martin 2020-05-05 15:54 ` Will Deacon 2020-05-05 15:54 ` Will Deacon 2020-05-05 16:06 ` Dave Martin 2020-05-05 16:06 ` Dave Martin 2020-05-06 10:16 ` Michael Kerrisk (man-pages) 2020-05-06 10:16 ` Michael Kerrisk (man-pages) 2020-05-06 10:35 ` Dave Martin 2020-05-06 10:35 ` Dave Martin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200505152658.GL1551@shell.armlinux.org.uk \ --to=linux@armlinux.org.uk \ --cc=Dave.Martin@arm.com \ --cc=catalin.marinas@arm.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-man@vger.kernel.org \ --cc=mtk.manpages@gmail.com \ --cc=will@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.