From patchwork Sun May 21 13:15:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 765099 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wW2g52cgqz9s5L for ; Sun, 21 May 2017 23:28:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="djpzAjJO"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wW2g51YQszDqjC for ; Sun, 21 May 2017 23:28:33 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="djpzAjJO"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wW2PD0zyszDqMK for ; Sun, 21 May 2017 23:16:32 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="djpzAjJO"; dkim-atps=neutral Received: by mail-pf0-x242.google.com with SMTP id f27so14511064pfe.0 for ; Sun, 21 May 2017 06:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q7g6xMi9ZBsIViBbLpGLhvqO0wH5/yM1vfMtLnMVP9Y=; b=djpzAjJOfvJPnue5IEer8izB6kEMCOHfH+j1JilzACxyFCBea1id3IHdMxEcgrYxeT TMRBvMBzabb6n9ZcWRp+1S4zVONrdwMj85CK67Nmf6GtelDXtaz0GoEGyCV6repJPlQz VlVzbp4FZ3PCE/5LNbeRzvkx5Pzuou5KYLrj6a08JtGwt/uXPvSRVj70UktHoyA27pFK ZewqXQw4EZMSwLNMS16pqGu9iqCOSFsWB67KLchmkIWLU8x7H3vweZpQd7B+dtw9guvu i/aLcw6O0zzQvXXMhzPCR9pRvrFMQhVOgG1ckO111OpdLq6Oxp02S1MBVHf0XkXsDFAB Va3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q7g6xMi9ZBsIViBbLpGLhvqO0wH5/yM1vfMtLnMVP9Y=; b=KKBJJYkoTw5Xb9JSseqOMtDGXFunh7cNQO2xo1Y56x58FAOoTl+UEL50Phw5K1iWHo xsZJ1BoYh8KfJk8qog1d+HXEPyPKrTRU9ghmK1mJ5skH8oFbUJ1rmksPWrjzMfZAmhVH Z7i7rbkM0wIVMNCoq8XWWp4E8ODWLsyc7YwE1l9GlNkWZgtdweco+DMUe1C745h2efeF Z5Cgp86pyxbMAuV3QAzSAHF44Bs20uM5mR7Nq0KM+qfgJ3mR+03LM2GEEKZuJ1utpBPu iN3Dr+9ZH5QWvFrHx86dANG4pKAN6DMil3AvXXsAVt4AJ5Ndyr5e5p5qsfivF9qlrMwk OP9Q== X-Gm-Message-State: AODbwcAYWlkqf3meoqCZN0qSepmQsGILqcRVHGwpJEe2pXLIakHKUr8Q 2i+J15TTBhIA1Q== X-Received: by 10.98.111.133 with SMTP id k127mr20016603pfc.215.1495372590489; Sun, 21 May 2017 06:16:30 -0700 (PDT) Received: from roar.ozlabs.ibm.com (149.45.218.139.dynamic.dsl.dv.iprimus.net.au. [139.218.45.149]) by smtp.gmail.com with ESMTPSA id x80sm26285428pff.105.2017.05.21.06.16.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 May 2017 06:16:29 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH 7/9] powerpc/64s: paca EX_LR can be merged with EX_DAR Date: Sun, 21 May 2017 23:15:48 +1000 Message-Id: <20170521131550.25813-8-npiggin@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170521131550.25813-1-npiggin@gmail.com> References: <20170521131550.25813-1-npiggin@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" EX_LR is used only for a small section of the SLB miss handler. Merge it with EX_DAR. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/exception-64s.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/exception-64s.h b/arch/powerpc/include/asm/exception-64s.h index e1103dc9d8e8..ba03db14e1e8 100644 --- a/arch/powerpc/include/asm/exception-64s.h +++ b/arch/powerpc/include/asm/exception-64s.h @@ -35,12 +35,19 @@ #define EX_DSISR 48 #define EX_CCR 52 #define EX_R3 56 -#define EX_LR 64 -#define EX_CFAR 72 -#define EX_PPR 80 /* SMT thread status register (priority) */ -#define EX_CTR 88 +#define EX_CFAR 64 +#define EX_PPR 72 +#define EX_CTR 80 -#define EX_SIZE 12 /* size in u64 units */ +#define EX_SIZE 11 /* size in u64 units */ + +/* + * EX_LR is only used in EXSLB and where it does not overlap with EX_DAR + * EX_CCR similarly with DSISR, but being 4 byte registers there is a hole + * in the save area so it's not necessary to overlap them. Could be used + * for future savings though if another 4 byte register was to be saved. + */ +#define EX_LR EX_DAR #ifdef __ASSEMBLY__