diff options
| -rw-r--r-- | arch/arm/mm/init.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 3a2077239474..7829cb5425f5 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
| @@ -686,6 +686,23 @@ void __init mem_init(void) | |||
| 686 | #undef MLM | 686 | #undef MLM |
| 687 | #undef MLK_ROUNDUP | 687 | #undef MLK_ROUNDUP |
| 688 | 688 | ||
| 689 | /* | ||
| 690 | * Check boundaries twice: Some fundamental inconsistencies can | ||
| 691 | * be detected at build time already. | ||
| 692 | */ | ||
| 693 | #ifdef CONFIG_MMU | ||
| 694 | BUILD_BUG_ON(VMALLOC_END > CONSISTENT_BASE); | ||
| 695 | BUG_ON(VMALLOC_END > CONSISTENT_BASE); | ||
| 696 | |||
| 697 | BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR); | ||
| 698 | BUG_ON(TASK_SIZE > MODULES_VADDR); | ||
| 699 | #endif | ||
| 700 | |||
| 701 | #ifdef CONFIG_HIGHMEM | ||
| 702 | BUILD_BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET); | ||
| 703 | BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET); | ||
| 704 | #endif | ||
| 705 | |||
| 689 | if (PAGE_SIZE >= 16384 && num_physpages <= 128) { | 706 | if (PAGE_SIZE >= 16384 && num_physpages <= 128) { |
| 690 | extern int sysctl_overcommit_memory; | 707 | extern int sysctl_overcommit_memory; |
| 691 | /* | 708 | /* |
