diff options
author | Afzal Mohammed <afzal.mohd.ma@gmail.com> | 2017-02-01 07:39:18 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-02-28 06:06:14 -0500 |
commit | 58c16709f9cad7e6daabeaa5c94ac4dcb260aedd (patch) | |
tree | 879c8d14ebe6d63d92929296f09074275446593a | |
parent | f8300a0b5de08c09db105db3c34a2a1c618e147e (diff) |
ARM: 8648/2: nommu: display vectors base
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>
-rw-r--r-- | arch/arm/include/asm/memory.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 00bd3529854a..1f54e4e98c1e 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h | |||
@@ -83,8 +83,15 @@ | |||
83 | #define IOREMAP_MAX_ORDER 24 | 83 | #define IOREMAP_MAX_ORDER 24 |
84 | #endif | 84 | #endif |
85 | 85 | ||
86 | #define VECTORS_BASE UL(0xffff0000) | ||
87 | |||
86 | #else /* CONFIG_MMU */ | 88 | #else /* CONFIG_MMU */ |
87 | 89 | ||
90 | #ifndef __ASSEMBLY__ | ||
91 | extern unsigned long vectors_base; | ||
92 | #define VECTORS_BASE vectors_base | ||
93 | #endif | ||
94 | |||
88 | /* | 95 | /* |
89 | * The limitation of user task size can grow up to the end of free ram region. | 96 | * The limitation of user task size can grow up to the end of free ram region. |
90 | * It is difficult to define and perhaps will never meet the original meaning | 97 | * It is difficult to define and perhaps will never meet the original meaning |
@@ -111,8 +118,6 @@ | |||
111 | 118 | ||
112 | #endif /* !CONFIG_MMU */ | 119 | #endif /* !CONFIG_MMU */ |
113 | 120 | ||
114 | #define VECTORS_BASE UL(0xffff0000) | ||
115 | |||
116 | #ifdef CONFIG_XIP_KERNEL | 121 | #ifdef CONFIG_XIP_KERNEL |
117 | #define KERNEL_START _sdata | 122 | #define KERNEL_START _sdata |
118 | #else | 123 | #else |