ARM: 8648/2: nommu: display vectors base
authorAfzal Mohammed <afzal.mohd.ma@gmail.com>
Wed, 1 Feb 2017 12:39:18 +0000 (13:39 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 28 Feb 2017 11:06:14 +0000 (11:06 +0000)
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@armlinux.org.uk>
Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Tested-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/memory.h

index 00bd3529854a0622105c375be41dbddda3d6d688..1f54e4e98c1e10cd77fd23a465268946c33d15c8 100644 (file)
 #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
 
 #endif /* !CONFIG_MMU */
 
-#define VECTORS_BASE           UL(0xffff0000)
-
 #ifdef CONFIG_XIP_KERNEL
 #define KERNEL_START           _sdata
 #else