From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2767C47254 for ; Tue, 5 May 2020 15:27:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7B27D2073B for ; Tue, 5 May 2020 15:27:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="YizWGAa0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729335AbgEEP1L (ORCPT ); Tue, 5 May 2020 11:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729250AbgEEP1L (ORCPT ); Tue, 5 May 2020 11:27:11 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 427E4C061A0F for ; Tue, 5 May 2020 08:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yd8yNvRGtLxIKAp9JfvKsxk3BYc2M2YC3lEfdJ6s0PE=; b=YizWGAa0BvfwCGp8+JpBZZHMY H6cN5kJ7d5yqw2o7nK/j4UtqtFqmtjiJ/MYygG+yMnHgFaTSCSzdAYz5Cf5Uf2yqqssQzyWg82rpz Ew4Iy0z96EZw3ogEKueBxct7k92lL7Wt37fuH9/lKH9zptp8jG3aYOAgH4bhOzEwFsJZUEgX22fnY hFPKN/xWUxgmoyA/u7DFvVIRuMpE+tL18BjCvuXrjGDg6vAeKBn5iiyRDxZ0pxLR0U8DtmKHabyMC MqG8m3FREghRIOA4iaAKHHdfuKHv2SZXWSAVzzvLCSoA0BtGRmG/5FQ34Rcvft2+PSc6wzXn19HDz yonYWctOw==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:36350) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVzTI-0003FB-Ql; Tue, 05 May 2020 16:27:00 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jVzTH-0007GE-0J; Tue, 05 May 2020 16:26:59 +0100 Date: Tue, 5 May 2020 16:26:58 +0100 From: Russell King - ARM Linux admin To: Dave Martin Cc: Michael Kerrisk , Catalin Marinas , Will Deacon , 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 Message-ID: <20200505152658.GL1551@shell.armlinux.org.uk> References: <1588692280-15878-1-git-send-email-Dave.Martin@arm.com> <1588692280-15878-2-git-send-email-Dave.Martin@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1588692280-15878-2-git-send-email-Dave.Martin@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-man-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org 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 Thanks Dave, Acked-by: Russell King > --- > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC0A4C47254 for ; Tue, 5 May 2020 15:27:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6FC752073B for ; Tue, 5 May 2020 15:27:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="k0s+0WtF"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="YizWGAa0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6FC752073B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6d5HT1SUc2pzXvtb1LFaIWriw54tCjAP02sPuHzaM8I=; b=k0s+0WtFS6VGs9 qoUdZb8fOIPFz9xVtsY8JJneS/whplfMbEwyQNEesOUcD/GLUBTtScEn/ZZbPlorHnMPCNKEHncLy mWJmta4Rj72qmK+5YRcyLbZuPsVh9GWp/zXwpAgyP+u/SIiigSIOXmRso2RSsC+G3zDuuhuB6Jt7k iC6t94jirnIuzXl6IWIWSms/8SydW4xt0PUg0ZB0ekvr1Mz3TboYeWztIaPDF8bH0ia3IszX8GlbJ t/fUt2C2TnjKDD81R8J0Wr3yyTKD6JA5S9vVTEusvy7GoFcaQSD8U8DrJzSSxfYEmyZ3uM/VbinG3 EpouT5uQ8b+olg2vf1rw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVzTY-000062-Ty; Tue, 05 May 2020 15:27:16 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVzTU-0008SZ-2V for linux-arm-kernel@lists.infradead.org; Tue, 05 May 2020 15:27:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yd8yNvRGtLxIKAp9JfvKsxk3BYc2M2YC3lEfdJ6s0PE=; b=YizWGAa0BvfwCGp8+JpBZZHMY H6cN5kJ7d5yqw2o7nK/j4UtqtFqmtjiJ/MYygG+yMnHgFaTSCSzdAYz5Cf5Uf2yqqssQzyWg82rpz Ew4Iy0z96EZw3ogEKueBxct7k92lL7Wt37fuH9/lKH9zptp8jG3aYOAgH4bhOzEwFsJZUEgX22fnY hFPKN/xWUxgmoyA/u7DFvVIRuMpE+tL18BjCvuXrjGDg6vAeKBn5iiyRDxZ0pxLR0U8DtmKHabyMC MqG8m3FREghRIOA4iaAKHHdfuKHv2SZXWSAVzzvLCSoA0BtGRmG/5FQ34Rcvft2+PSc6wzXn19HDz yonYWctOw==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:36350) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVzTI-0003FB-Ql; Tue, 05 May 2020 16:27:00 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jVzTH-0007GE-0J; Tue, 05 May 2020 16:26:59 +0100 Date: Tue, 5 May 2020 16:26:58 +0100 From: Russell King - ARM Linux admin To: Dave Martin Subject: Re: [PATCH 1/2] syscall.2: arm: Use real register names for arm/OABI Message-ID: <20200505152658.GL1551@shell.armlinux.org.uk> References: <1588692280-15878-1-git-send-email-Dave.Martin@arm.com> <1588692280-15878-2-git-send-email-Dave.Martin@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1588692280-15878-2-git-send-email-Dave.Martin@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200505_082712_137735_537BC1FA X-CRM114-Status: GOOD ( 16.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Will Deacon , Michael Kerrisk , linux-arm-kernel@lists.infradead.org, linux-man@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Thanks Dave, Acked-by: Russell King > --- > 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