diff options
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index e7d54c73d5c1..c1a697e68546 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c | |||
@@ -1334,6 +1334,10 @@ static void __init pcpu_fc_populate_pte(unsigned long addr) | |||
1334 | pte_t *pte; | 1334 | pte_t *pte; |
1335 | 1335 | ||
1336 | BUG_ON(pgd_addr_invalid(addr)); | 1336 | BUG_ON(pgd_addr_invalid(addr)); |
1337 | if (addr < VMALLOC_START || addr >= VMALLOC_END) | ||
1338 | panic("PCPU addr %#lx outside vmalloc range %#lx..%#lx;" | ||
1339 | " try increasing CONFIG_VMALLOC_RESERVE\n", | ||
1340 | addr, VMALLOC_START, VMALLOC_END); | ||
1337 | 1341 | ||
1338 | pgd = swapper_pg_dir + pgd_index(addr); | 1342 | pgd = swapper_pg_dir + pgd_index(addr); |
1339 | pud = pud_offset(pgd, addr); | 1343 | pud = pud_offset(pgd, addr); |