PERFORCE change 61088 for review

Juli Mallett jmallett at FreeBSD.org
Mon Sep 6 04:32:07 PDT 2004


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

Change 61088 by jmallett at jmallett_toxic on 2004/09/06 11:32:00

	Wild-assed guess after having not gotten to think about MIPS
	for a while- maybe I need to be more judicious about flushing
	out the cache?  I dunno, what with ASID tagging, but it's worth
	getting this thought out even if I can't test it, in trying to
	figure out why cached stuff goes wrong even though it worked at
	first.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/pmap.c#39 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/pmap.c#39 (text+ko) ====

@@ -1681,6 +1681,7 @@
 		alpha_pal_swpctx((u_long)td->td_md.md_pcbpaddr);
 		*/
 	}
+	mips_dcache_wbinv_all();
 }
 
 void
@@ -1691,6 +1692,7 @@
 	pmap = vmspace_pmap(td->td_proc->p_vmspace);
 	atomic_clear_int(&pmap->pm_active, PCPU_GET(cpumask));
 	pmap_active = 0;
+	mips_dcache_wbinv_all();
 }
 
 /*


More information about the p4-projects mailing list