Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77d23303 authored by Chris Metcalf's avatar Chris Metcalf
Browse files

arch/tile: Add a warning if we try to allocate too much vmalloc memory.

parent d6f0f22c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1334,6 +1334,10 @@ static void __init pcpu_fc_populate_pte(unsigned long addr)
	pte_t *pte;

	BUG_ON(pgd_addr_invalid(addr));
	if (addr < VMALLOC_START || addr >= VMALLOC_END)
		panic("PCPU addr %#lx outside vmalloc range %#lx..%#lx;"
		      " try increasing CONFIG_VMALLOC_RESERVE\n",
		      addr, VMALLOC_START, VMALLOC_END);

	pgd = swapper_pg_dir + pgd_index(addr);
	pud = pud_offset(pgd, addr);