From patchwork Sun Jan 22 03:22:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: afzal mohammed X-Patchwork-Id: 9530749 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 75C44601D4 for ; Sun, 22 Jan 2017 03:24:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6641728383 for ; Sun, 22 Jan 2017 03:24:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AC512839B; Sun, 22 Jan 2017 03:24:36 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, 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 EA36A28383 for ; Sun, 22 Jan 2017 03:24:35 +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 1cV8lW-0006qU-90; Sun, 22 Jan 2017 03:24:26 +0000 Received: from mail-pg0-f68.google.com ([74.125.83.68]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cV8l7-0004oJ-Ax for linux-arm-kernel@lists.infradead.org; Sun, 22 Jan 2017 03:24:03 +0000 Received: by mail-pg0-f68.google.com with SMTP id 75so10405032pgf.3 for ; Sat, 21 Jan 2017 19:23:40 -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=v2vM5r7kFxfmUaXyaJeYmwfjaJzWOwCxEAEjHUew5XQ=; b=R1SEL+V+lE25G56+OQwINKbyu0CEcIluFWBgieddRKtBLF1RNG/Ox3LaRqLnE6TM8M DY0xCZ7T/w8a7OrIaWsxQ4GSdlxSZL50Pg7a0WfcNT2Ua8wJdV0rzzpo7zaGUHlLbrvC wZy9V9bzCFJAD0SMvsXW1sK0pLyQ0aZh4odixIknA8fL3OXbjqq+IVyvgIxHQXWXNNO+ w73+S8272WTILZ4L7gdybz5xuQ5qnGBxxWrIalWnP8aBejnQAy09BnGS1SF5wl1nxQHY gMYLjk9WFPYD/li2pPFL0aBVWG1kyJX7+48XVe2ssTPc21RJLcFfNJsIN1ARZ7v9HzF9 lnuw== 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=v2vM5r7kFxfmUaXyaJeYmwfjaJzWOwCxEAEjHUew5XQ=; b=kRYRLAjj6l1te0yaoo3QmlebaviE5JbZASXq0qZgOhwzlv7cPSLTI99tVvD3I1jbBB qoZJRWH1eRrxe5bVzny6W3RBxMEP+A68BAAG+SaI8RQdgKpZxESwM/D5Tt3J+93Nn0vm eNHOg7Q/QNAVI+35ZbWsZGZQbqRo6P+2MiQcSBjeFRzw6qBnKUaD3nK9M/nzpzlQeCJR uBAyQQc5WL/Ob4mDNtdijLxwCXWyXCR+I+3mjy7Mt4hzii2VGTzkVQ6RcoWHR86wBeqV JNKSLNPRUpJs0A/VRECXuW9sG+BCk3Lvhg5oTNCd/I3pNrvIorAojjOD0NiV1UtYnGDb SOww== X-Gm-Message-State: AIkVDXJ36dEHPqCMn6UHCJwR9RnDQxtUoZXD5yzlHIigH8qed4bKP+RtfkchibbX3IaOjA== X-Received: by 10.84.129.132 with SMTP id b4mr13431853plb.54.1485055360332; Sat, 21 Jan 2017 19:22:40 -0800 (PST) Received: from localhost.localdomain ([223.227.141.101]) by smtp.gmail.com with ESMTPSA id b1sm26879200pfa.28.2017.01.21.19.22.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 Jan 2017 19:22:39 -0800 (PST) From: afzal mohammed To: Russell King - ARM Linux Subject: [PATCH v2 3/4] ARM: nommu: display vectors base Date: Sun, 22 Jan 2017 08:52:12 +0530 Message-Id: <20170122032212.13456-1-afzal.mohd.ma@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170122031652.13074-1-afzal.mohd.ma@gmail.com> References: <20170122031652.13074-1-afzal.mohd.ma@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170121_192401_456211_CD477E8F X-CRM114-Status: GOOD ( 12.14 ) 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 The exception base address is now dynamically estimated for no-MMU, display it. As it is the case, now limit VECTORS_BASE usage to MMU scenario. Signed-off-by: afzal mohammed --- v2: A change to accomodate bisectability resolution on patch 1/4 arch/arm/include/asm/memory.h | 4 ++-- arch/arm/mm/init.c | 5 +++++ arch/arm/mm/mm.h | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 0b5416fe7709..9ae474bf84fc 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h @@ -83,6 +83,8 @@ #define IOREMAP_MAX_ORDER 24 #endif +#define VECTORS_BASE UL(0xffff0000) + #else /* CONFIG_MMU */ /* @@ -111,8 +113,6 @@ #endif /* !CONFIG_MMU */ -#define VECTORS_BASE UL(0xffff0000) - /* * We fix the TCM memories max 32 KiB ITCM resp DTCM at these * locations diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 823e119a5daa..9c68e3aba87c 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -522,7 +522,12 @@ void __init mem_init(void) " .data : 0x%p" " - 0x%p" " (%4td kB)\n" " .bss : 0x%p" " - 0x%p" " (%4td kB)\n", +#ifdef CONFIG_MMU MLK(VECTORS_BASE, VECTORS_BASE + PAGE_SIZE), +#else + MLK(vectors_base, vectors_base + PAGE_SIZE), +#endif + #ifdef CONFIG_HAVE_TCM MLK(DTCM_OFFSET, (unsigned long) dtcm_end), MLK(ITCM_OFFSET, (unsigned long) itcm_end), diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index ce727d47275c..546f09437fca 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h @@ -79,8 +79,9 @@ struct static_vm { extern struct list_head static_vmlist; extern struct static_vm *find_static_vm_vaddr(void *vaddr); extern __init void add_static_vm_early(struct static_vm *svm); - -#endif +#else /* CONFIG_MMU */ +extern unsigned long vectors_base; +#endif /* CONFIG_MMU */ #ifdef CONFIG_ZONE_DMA extern phys_addr_t arm_dma_limit;