summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-06-20 06:25:22 +0000
committerpeter <peter@FreeBSD.org>2002-06-20 06:25:22 +0000
commite763131bd9020d479409485b0cedb34bf44675b9 (patch)
tree6a4e11bb7d373fbce7b0cde57be1f414af2ec1ca /sys/ia64
parent8861030ce89388a95a39df7918135bc51e5e8ac9 (diff)
downloadFreeBSD-src-e763131bd9020d479409485b0cedb34bf44675b9.zip
FreeBSD-src-e763131bd9020d479409485b0cedb34bf44675b9.tar.gz
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.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/pmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c
index 4b65917..1247360 100644
--- a/sys/ia64/ia64/pmap.c
+++ b/sys/ia64/ia64/pmap.c
@@ -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));
}
OpenPOWER on IntegriCloud