summaryrefslogtreecommitdiffstats
path: root/arch/arc/mm
diff options
context:
space:
mode:
authorNoam Camus <noamc@ezchip.com>2015-12-06 15:40:55 +0200
committerVineet Gupta <vgupta@synopsys.com>2016-05-09 09:32:32 +0530
commit8bcf2c48f32e22f923b69f779c95b1348308d5b1 (patch)
treede985a3469686b3dfc5cb59c2c180c5ba53e6e44 /arch/arc/mm
parent4a66d3fecf6554c4e1482774833da4f07cade787 (diff)
downloadlinux-8bcf2c48f32e22f923b69f779c95b1348308d5b1.tar.bz2
ARC: [plat-eznps] Use dedicated user stack top
NPS use special mapping right below TASK_SIZE. Hence we need to lower STACK_TOP so that user stack won't overlap NPS special mapping. Signed-off-by: Noam Camus <noamc@ezchip.com> Acked-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/mm')
-rw-r--r--arch/arc/mm/tlb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arc/mm/tlb.c b/arch/arc/mm/tlb.c
index 745a9aeb2d96..ec868a9081a1 100644
--- a/arch/arc/mm/tlb.c
+++ b/arch/arc/mm/tlb.c
@@ -819,6 +819,12 @@ void arc_mmu_init(void)
*/
BUILD_BUG_ON(!IS_ALIGNED((CONFIG_ARC_KVADDR_SIZE << 20), PMD_SIZE));
+ /*
+ * stack top size sanity check,
+ * Can't be done in processor.h due to header include depenedencies
+ */
+ BUILD_BUG_ON(!IS_ALIGNED(STACK_TOP, PMD_SIZE));
+
/* For efficiency sake, kernel is compile time built for a MMU ver
* This must match the hardware it is running on.
* Linux built for MMU V2, if run on MMU V1 will break down because V1