panic rather than fault and explode if we fail to contigmalloc a kernel

stack.  This is still bad(TM), but at least we have a clue when we get
hit when contigmalloc fails.
This commit is contained in:
peter 2002-06-20 06:25:22 +00:00
parent 8861030ce8
commit e763131bd9

View File

@ -875,6 +875,9 @@ pmap_new_thread(struct thread *td)
PAGE_SIZE,
256*1024*1024);
if (ks == NULL)
panic("pmap_new_thread: could not contigmalloc %d pages\n",
KSTACK_PAGES);
td->td_md.md_kstackvirt = ks;
td->td_kstack = IA64_PHYS_TO_RR7(ia64_tpa((u_int64_t)ks));
}