aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2010-10-14 14:47:35 -0400
committerChris Metcalf <cmetcalf@tilera.com>2010-10-14 14:47:35 -0400
commit77d233036ea886398770f208aa22235acf0d011c (patch)
treef3edb38ea286885b65cd1e615fddb796d0799c6a /arch
parentd6f0f22c3c409f9ed88e64f881f8308730be76f0 (diff)
arch/tile: Add a warning if we try to allocate too much vmalloc memory.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/tile/kernel/setup.c4
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);