From patchwork Fri Sep 4 14:23:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jungseok Lee X-Patchwork-Id: 7123871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CE126BEEC1 for ; Fri, 4 Sep 2015 14:25:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 012C820495 for ; Fri, 4 Sep 2015 14:25:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 34D9720497 for ; Fri, 4 Sep 2015 14:25:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZXruO-0004Pz-GZ; Fri, 04 Sep 2015 14:24:04 +0000 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZXru6-0004EM-0t for linux-arm-kernel@lists.infradead.org; Fri, 04 Sep 2015 14:23:46 +0000 Received: by pacfv12 with SMTP id fv12so26361252pac.2 for ; Fri, 04 Sep 2015 07:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mixC2XINKbIt1fg41CfJ6UzXuAild6TdBUzwPSBiNeA=; b=nyZQKlNI6WnQWNx3VAoZXiRoKARJUtVZ9XJKnXIIwzRCF9+4Wg73LWETMGSwfc4RVH Izd7jGdJzhdUxv10CpKB10KOHA+9Ci+4g/lAC3xtWzatk8Ji/wfu8iCXl5OlbAavr3sO IZe3get59zUtE/dJdapeTec681P24HETsl5OdDwmEXdPucQnivoLpHhSiIQ1npS52UOb 6ganmbCBfnxm69DU/BOsnODWGQbEGHySQjYvkQ3mkJXT3L4Ravu22cJ4wBULkLVpDsXr ypeFbylbVG7ZgwXa4M5yw9NuZY9Dtm6Xcdr5n8iugUWOaHVniy181swjGojsIQKTvdm3 l6sQ== X-Received: by 10.67.22.169 with SMTP id ht9mr8881604pad.35.1441376605338; Fri, 04 Sep 2015 07:23:25 -0700 (PDT) Received: from ip-10-186-128-153.ap-northeast-1.compute.internal (ec2-54-178-75-198.ap-northeast-1.compute.amazonaws.com. [54.178.75.198]) by smtp.gmail.com with ESMTPSA id em1sm2733412pbd.42.2015.09.04.07.23.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Sep 2015 07:23:24 -0700 (PDT) From: Jungseok Lee To: catalin.marinas@arm.com, will.deacon@arm.com, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 1/3] arm64: entry: Remove unnecessary calculation for S_SP in EL1h Date: Fri, 4 Sep 2015 14:23:05 +0000 Message-Id: <1441376587-12979-2-git-send-email-jungseoklee85@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441376587-12979-1-git-send-email-jungseoklee85@gmail.com> References: <1441376587-12979-1-git-send-email-jungseoklee85@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150904_072346_095844_B4B89A7A X-CRM114-Status: GOOD ( 10.21 ) X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@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 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Under EL1h, S_SP data is not seen in kernel_exit. Thus, x21 calculation is not needed in kernel_entry. Currently, S_SP information is vaild only when sp_el0 is used. Signed-off-by: Jungseok Lee --- arch/arm64/kernel/entry.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S index e163518..d23ca0d 100644 --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -91,8 +91,6 @@ get_thread_info tsk // Ensure MDSCR_EL1.SS is clear, ldr x19, [tsk, #TI_FLAGS] // since we can unmask debug disable_step_tsk x19, x20 // exceptions when scheduling. - .else - add x21, sp, #S_FRAME_SIZE .endif mrs x22, elr_el1 mrs x23, spsr_el1