From patchwork Tue Jan 31 13:06:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: afzal mohammed X-Patchwork-Id: 9547175 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1437160425 for ; Tue, 31 Jan 2017 13:07:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03D122832F for ; Tue, 31 Jan 2017 13:07:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB0D028375; Tue, 31 Jan 2017 13:07:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C8B982832F for ; Tue, 31 Jan 2017 13:07:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cYY9T-0007ns-AC; Tue, 31 Jan 2017 13:07:15 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cYY9M-0007QZ-3B for linux-arm-kernel@lists.infradead.org; Tue, 31 Jan 2017 13:07:13 +0000 Received: by mail-pf0-x241.google.com with SMTP id f144so27815560pfa.2 for ; Tue, 31 Jan 2017 05:06:47 -0800 (PST) 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=VMGsxIC1S338wslejKYPeYl393+fPQMELloe+okVMOs=; b=SSHYJodhqov8V/LEVmarWM4CwJVQnVAEsvNdqlMRCI+jm/fCc6+rHLTpTwxuYoyabI P8kDsO/0f194gM0iRKQ92G8kK89Q1umQXx5/qlxSUCAZ8UY+ZjkAJ+otvgUiDRpwnqMj rMO2M1wpxI2KbPhbublx3QC3I3edYXY47pI5nNpj+6/Bkl9nx/YdjpaxjUx4OMx2dTrs I/mvu7TJnQyZoE2hJfGK5VXAg9263i0PtW4OgZkXeuiAUCRU4nzPV4/DPHyWjUd87CBk ggfbjZjAafq6y0Ar0pfuMFO7gSFiGBBbdxdHkvZntp0GOFPVHTj/j1dnqQ8qRudXZqE7 RnZw== 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=VMGsxIC1S338wslejKYPeYl393+fPQMELloe+okVMOs=; b=H2jKUuqVFBzU89oO4O+3lEgOLyZ4YcPJR2+AJZu+GvGTlhUZZfVwUnrE+0s3QLvrJg 3yptJnQ3bXwtrR6QVHsgO0ZKyy7jiUbV62V+rk+TEoXudP/tsVMyuvPa3LRsBDyyYqbn pIdE8u9wk9JarHzhxrZ7V5trwDjZB/rWNOiYLlDkc7AriBUMF7zFZkb9M27ZO+e6DV5b g0etXQdtP9yXXcnNDBWST0u6QULuO2je9s8ZgC8pXooPLd21DrgeqWcRkAiaocjdm0xb NziaANuLY/WAgfbJl3TA9HY73zQ/+synDOyTN08jEUE2xP62/9g8GaSUH1/zcGN5Unz/ F5YA== X-Gm-Message-State: AIkVDXK3S9EY9R5GXAXycVifX9J8eoe3vK2BmJ2LMztyt7dKjLbK7KfOq0eYro6L/Tkw7w== X-Received: by 10.99.237.17 with SMTP id d17mr29939421pgi.82.1485868007176; Tue, 31 Jan 2017 05:06:47 -0800 (PST) Received: from localhost.localdomain ([14.194.191.81]) by smtp.gmail.com with ESMTPSA id z77sm41143974pfk.47.2017.01.31.05.06.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Jan 2017 05:06:46 -0800 (PST) From: afzal mohammed To: Russell King - ARM Linux Subject: [PATCH v3 2/3] ARM: nommu: display vectors base Date: Tue, 31 Jan 2017 18:36:29 +0530 Message-Id: <20170131130629.5989-1-afzal.mohd.ma@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170131130446.5829-1-afzal.mohd.ma@gmail.com> References: <20170131130446.5829-1-afzal.mohd.ma@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170131_050708_175618_5F3CA03D X-CRM114-Status: GOOD ( 11.63 ) 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: Vladimir Murzin , afzal mohammed , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.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-Virus-Scanned: ClamAV using ClamSMTP VECTORS_BASE displays the exception base address. Now on no-MMU as the exception base address is dynamically estimated, define VECTORS_BASE to the variable holding it. As it is the case, limit VECTORS_BASE constant definition to MMU. Suggested-by: Russell King Signed-off-by: afzal mohammed --- v3: Simplify by defining VECTORS_BASE to vectors_base v2: A change to accomodate bisectability resolution on patch 1/4 arch/arm/include/asm/memory.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 0b5416fe7709..780549a78937 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h @@ -83,8 +83,15 @@ #define IOREMAP_MAX_ORDER 24 #endif +#define VECTORS_BASE UL(0xffff0000) + #else /* CONFIG_MMU */ +#ifndef __ASSEMBLY__ +extern unsigned long vectors_base; +#define VECTORS_BASE vectors_base +#endif + /* * The limitation of user task size can grow up to the end of free ram region. * It is difficult to define and perhaps will never meet the original meaning @@ -111,8 +118,6 @@ #endif /* !CONFIG_MMU */ -#define VECTORS_BASE UL(0xffff0000) - /* * We fix the TCM memories max 32 KiB ITCM resp DTCM at these * locations