Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1570713

[PATCH v3 2/3] ARM: nommu: display vectors base

From afzal mohammed <afzal.mohd.ma@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v3 2/3] ARM: nommu: display vectors base
Date 2017-01-31 14:20 +0100
Message-ID <t5GvM-19j-5@gated-at.bofh.it> (permalink)
References <t5Gm6-15T-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <rmk+kernel@arm.linux.org.uk>
Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
---

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
-- 
2.11.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/3] ARM: !MMU: v7-A support, dynamic vectors base handling afzal mohammed <afzal.mohd.ma@gmail.com> - 2017-01-31 14:10 +0100
  [PATCH v3 1/3] ARM: nommu: dynamic exception base address setting afzal mohammed <afzal.mohd.ma@gmail.com> - 2017-01-31 14:10 +0100
  [PATCH v3 2/3] ARM: nommu: display vectors base afzal mohammed <afzal.mohd.ma@gmail.com> - 2017-01-31 14:20 +0100
  Re: [PATCH v3 0/3] ARM: !MMU: v7-A support, dynamic vectors base  handling Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-01-31 20:30 +0100
    Re: [PATCH v3 0/3] ARM: !MMU: v7-A support, dynamic vectors base  handling Vladimir Murzin <vladimir.murzin@arm.com> - 2017-02-01 11:40 +0100
      Re: [PATCH v3 0/3] ARM: !MMU: v7-A support, dynamic vectors base  handling Afzal Mohammed <afzal.mohd.ma@gmail.com> - 2017-02-01 14:20 +0100

csiph-web