Module Name:    src
Committed By:   matt
Date:           Thu Dec  1 02:58:23 UTC 2011

Modified Files:
        src/sys/arch/mips/mips [matt-nb5-mips64]: pmap.c

Log Message:
Deal with uvmexp.ncolors being 0.


To generate a diff of this commit:
cvs rdiff -u -r1.179.16.31 -r1.179.16.32 src/sys/arch/mips/mips/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/pmap.c
diff -u src/sys/arch/mips/mips/pmap.c:1.179.16.31 src/sys/arch/mips/mips/pmap.c:1.179.16.32
--- src/sys/arch/mips/mips/pmap.c:1.179.16.31	Tue Nov 29 07:48:31 2011
+++ src/sys/arch/mips/mips/pmap.c	Thu Dec  1 02:58:23 2011
@@ -489,7 +489,8 @@ pmap_bootstrap(void)
 {
 	vsize_t bufsz;
 
-	pmap_page_colormask = (uvmexp.ncolors -1) << PAGE_SHIFT;
+	if (uvmexp.ncolors)
+		pmap_page_colormask = (uvmexp.ncolors - 1) << PAGE_SHIFT;
 
 	pmap_tlb_info_init(&pmap_tlb0_info);		/* init the lock */
 

Reply via email to