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=-10.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT 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 1C6EBC43387 for ; Thu, 3 Jan 2019 16:17:36 +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 E0927208E3 for ; Thu, 3 Jan 2019 16:17:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iwWVOLYO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E0927208E3 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+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=EFSwVdw5Kezp2v0Z5Vvu95MFtbRxBmVqTa+IcKpe0RQ=; b=iwWVOLYOSQORcW wHCf9WVFf7+335C01sJDtFNxOxDu+4uxVFIl77GJ8+0TW07LXaOCvLBbwNUsWF4QBAlhcV/+Pi4SK 3USffBuiRKMdTmy0hVVgLm0tnFDe/VEqugkDwyuEZVt6tYh8eBjGIx16jUa+S8yVK51kVvV8hn7Oy L47vVJM8ua5CyT1ESMisjq0dyD4wc7MnNsDLfKqZfeGwyAMbpSaAmaSuwPPWcjKYc6jWajB1V6hDx p5CzRdYn9VJvFlBashBjR1fuovF5hSlKD3YeAhKKFYWUa+WKelLgm1Md7OzzxF1P8lDVHJH+T0Dmd Qe4C2CJaw5/tH1z6I4GQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gf5ga-0005Sz-4p; Thu, 03 Jan 2019 16:17:32 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gf5gV-0005SL-Gq for linux-arm-kernel@lists.infradead.org; Thu, 03 Jan 2019 16:17:29 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2562B15AD; Thu, 3 Jan 2019 08:17:26 -0800 (PST) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 355F43F5D4; Thu, 3 Jan 2019 08:17:25 -0800 (PST) Date: Thu, 3 Jan 2019 16:17:22 +0000 From: Dave Martin To: Mark Rutland Subject: Re: [PATCH] arm64: entry: remove unused register aliases Message-ID: <20190103161720.GB3529@e103592.cambridge.arm.com> References: <20190103132310.42561-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190103132310.42561-1-mark.rutland@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190103_081727_569327_6F8492AA X-CRM114-Status: GOOD ( 17.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.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 Thu, Jan 03, 2019 at 01:23:10PM +0000, Mark Rutland wrote: > In commit: > > 3b7142752e4bee15 ("arm64: convert native/compat syscall entry to C") > > ... we moved the syscall invocation code from assembly to C, but left > behind a number of register aliases which are now unused. > > Let's remove them before they confuse someone. > > Signed-off-by: Mark Rutland > Cc: Catalin Marinas > Cc: Will Deacon Good riddance! FWIW, Reviewed-by: Dave Martin > --- > arch/arm64/kernel/entry.S | 12 +----------- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S > index 763f03dc4d9e..0ec0c46b2c0c 100644 > --- a/arch/arm64/kernel/entry.S > +++ b/arch/arm64/kernel/entry.S > @@ -392,17 +392,7 @@ alternative_insn eret, nop, ARM64_UNMAP_KERNEL_AT_EL0 > mov sp, x19 > .endm > > -/* > - * These are the registers used in the syscall handler, and allow us to > - * have in theory up to 7 arguments to a function - x0 to x6. > - * > - * x7 is reserved for the system call number in 32-bit mode. > - */ > -wsc_nr .req w25 // number of system calls > -xsc_nr .req x25 // number of system calls (zero-extended) > -wscno .req w26 // syscall number > -xscno .req x26 // syscall number (zero-extended) > -stbl .req x27 // syscall table pointer > +/* GPRs used by entry code */ > tsk .req x28 // current thread_info > > /* > -- > 2.11.0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel