mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
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
3c2aff6c15
commit
3800e8732f
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue