From patchwork Tue May 5 15:24:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 11529423 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 02BF714B4 for ; Tue, 5 May 2020 15:25:42 +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 D4C4F2073B for ; Tue, 5 May 2020 15:25:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QVu/Ie+u" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4C4F2073B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=wJnhtP44Y7BWpWDDKxQBrbsnYKqr9rnBtDKRNNeBEKo=; b=QVu/Ie+uSkrMk+8wKVhMHFSw31 cpg6A8RXsJlymc63JCCFEoKyaY4PJN8apVAA3+Pd9wi8hiHzYQRGrCCugpL04dQQmrEqDY+5ZHimW /RipedS2eeKGOMwmrQDb7EVU/UOSoTgALfwjMeRXG0VPRGneTejc2B6EBxjiaLATtwkwCvkXbOtbf qnBItrI4a0rTMEkLRp29lDTb+yGEif9bFNPWqppKzeLeu7k6LazVvf/9+8y0qrdBD2GN6uJl5FWNE kscnHJ+3nRMNQZSsAlFdOi4yRkh0EROFjakjMiuD44zLfFVLjWlBIKq5UnpcVyn7fY1CjzRO/2WO3 eLwlL+CQ==; 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 1jVzRz-0007ro-7o; Tue, 05 May 2020 15:25:39 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVzRv-0007o0-IW for linux-arm-kernel@lists.infradead.org; Tue, 05 May 2020 15:25:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9C7CF31B; Tue, 5 May 2020 08:25:34 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AD7E23F68F; Tue, 5 May 2020 08:25:28 -0700 (PDT) From: Dave Martin To: Michael Kerrisk Subject: [PATCH 2/2] syscall.2: arm64: Fix syscall number register size Date: Tue, 5 May 2020 16:24:40 +0100 Message-Id: <1588692280-15878-3-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1588692280-15878-1-git-send-email-Dave.Martin@arm.com> References: <1588692280-15878-1-git-send-email-Dave.Martin@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200505_082535_679719_044EF779 X-CRM114-Status: GOOD ( 10.85 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 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 , Russell King , linux-arm-kernel@lists.infradead.org, linux-man@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org arm64 is currently documented as receiving the syscall number in x8. While this is the correct register, the syscall number is a 32-bit integer. Bits [63:32] are ignored by the kernel. So it is more correct to say "w8". Signed-off-by: Dave Martin Acked-by: Will Deacon --- man2/syscall.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/syscall.2 b/man2/syscall.2 index 53ab40e..d724651 100644 --- a/man2/syscall.2 +++ b/man2/syscall.2 @@ -203,7 +203,7 @@ alpha callsys v0 v0 a4 a3 1, 6 arc trap0 r8 r0 - - arm/OABI swi NR - r0 - - 2 arm/EABI swi 0x0 r7 r0 r1 - -arm64 svc #0 x8 x0 x1 - +arm64 svc #0 w8 x0 x1 - blackfin excpt 0x0 P0 R0 - - i386 int $0x80 eax eax edx - ia64 break 0x100000 r15 r8 r9 r10 1, 6