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:
parent
8861030ce8
commit
e763131bd9
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user