diff options
Diffstat (limited to 'arch/arm/mm/nommu.c')
-rw-r--r-- | arch/arm/mm/nommu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c index d51225f90ae2..dd3a6c670f08 100644 --- a/arch/arm/mm/nommu.c +++ b/arch/arm/mm/nommu.c | |||
@@ -20,12 +20,19 @@ | |||
20 | 20 | ||
21 | void __init arm_mm_memblock_reserve(void) | 21 | void __init arm_mm_memblock_reserve(void) |
22 | { | 22 | { |
23 | #ifndef CONFIG_CPU_V7M | ||
23 | /* | 24 | /* |
24 | * Register the exception vector page. | 25 | * Register the exception vector page. |
25 | * some architectures which the DRAM is the exception vector to trap, | 26 | * some architectures which the DRAM is the exception vector to trap, |
26 | * alloc_page breaks with error, although it is not NULL, but "0." | 27 | * alloc_page breaks with error, although it is not NULL, but "0." |
27 | */ | 28 | */ |
28 | memblock_reserve(CONFIG_VECTORS_BASE, PAGE_SIZE); | 29 | memblock_reserve(CONFIG_VECTORS_BASE, PAGE_SIZE); |
30 | #else /* ifndef CONFIG_CPU_V7M */ | ||
31 | /* | ||
32 | * There is no dedicated vector page on V7-M. So nothing needs to be | ||
33 | * reserved here. | ||
34 | */ | ||
35 | #endif | ||
29 | } | 36 | } |
30 | 37 | ||
31 | void __init sanity_check_meminfo(void) | 38 | void __init sanity_check_meminfo(void) |