PERFORCE change 133822 for review

Warner Losh imp at FreeBSD.org
Mon Jan 21 14:47:23 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=133822

Change 133822 by imp at imp_paco-paco on 2008/01/21 22:46:38

	compile.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/vm_machdep.c#9 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/vm_machdep.c#9 (text+ko) ====

@@ -145,10 +145,10 @@
 	 * nothing to do since we're not going to change the physical address
 	 * of where we're swapped in at...
 	 */
-	pte = pmap_segmap(kernel_pmap, (vm_offset_t)td2->td_kstack;
+	pte = pmap_segmap(kernel_pmap, (vm_offset_t)td2->td_kstack);
 	if (pte == NULL) {
-		if ((vm_offset_t)td->td_kstack < MIPS_KSEG0_START &&
-		    (vm_offset_t)td->td_kstack > MIPS_KSEG0_END)
+		if ((vm_offset_t)td2->td_kstack < MIPS_KSEG0_START &&
+		    (vm_offset_t)td2->td_kstack > MIPS_KSEG0_END)
 			panic("cpu_fork: invalid segmap");
 	} else {
 		pte += ((vm_offset_t)td2->td_kstack >> PGSHIFT) & (NPTEPG - 1);


More information about the p4-projects mailing list