Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 2002 20:43:37 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 10636 for review
Message-ID:  <200205020343.g423hbZ68655@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10636

Change 10636 by peter@peter_daintree on 2002/05/01 20:43:08

	panic rather than fault if contigmalloc fails here...
	(pmap_new_proc should use normal allocation here)

Affected files ...

... //depot/projects/ia64/sys/ia64/ia64/pmap.c#17 edit

Differences ...

==== //depot/projects/ia64/sys/ia64/ia64/pmap.c#17 (text+ko) ====

@@ -717,6 +717,9 @@
 			  PAGE_SIZE,
 			  256*1024*1024);
 
+	if (up == NULL)
+		panic("pmap_new_proc: could not contigmalloc %d pages\n",
+		    UAREA_PAGES);
 	p->p_md.md_uservirt = up;
 	p->p_uarea = (struct user *)
 		IA64_PHYS_TO_RR7(ia64_tpa((u_int64_t) up));
@@ -771,6 +774,9 @@
 			  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));
 }

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205020343.g423hbZ68655>