diff options
Diffstat (limited to 'arch/arc/mm/tlb.c')
-rw-r--r-- | arch/arc/mm/tlb.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arc/mm/tlb.c b/arch/arc/mm/tlb.c index 7046c12c58ed..ec868a9081a1 100644 --- a/arch/arc/mm/tlb.c +++ b/arch/arc/mm/tlb.c | |||
@@ -814,6 +814,17 @@ void arc_mmu_init(void) | |||
814 | 814 | ||
815 | printk(arc_mmu_mumbojumbo(0, str, sizeof(str))); | 815 | printk(arc_mmu_mumbojumbo(0, str, sizeof(str))); |
816 | 816 | ||
817 | /* | ||
818 | * Can't be done in processor.h due to header include depenedencies | ||
819 | */ | ||
820 | BUILD_BUG_ON(!IS_ALIGNED((CONFIG_ARC_KVADDR_SIZE << 20), PMD_SIZE)); | ||
821 | |||
822 | /* | ||
823 | * stack top size sanity check, | ||
824 | * Can't be done in processor.h due to header include depenedencies | ||
825 | */ | ||
826 | BUILD_BUG_ON(!IS_ALIGNED(STACK_TOP, PMD_SIZE)); | ||
827 | |||
817 | /* For efficiency sake, kernel is compile time built for a MMU ver | 828 | /* For efficiency sake, kernel is compile time built for a MMU ver |
818 | * This must match the hardware it is running on. | 829 | * This must match the hardware it is running on. |
819 | * Linux built for MMU V2, if run on MMU V1 will break down because V1 | 830 | * Linux built for MMU V2, if run on MMU V1 will break down because V1 |