Date: Wed, 20 May 2009 23:07:11 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r192496 - projects/mips/sys/mips/mips Message-ID: <200905202307.n4KN7Bk2047121@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gonzo Date: Wed May 20 23:07:10 2009 New Revision: 192496 URL: http://svn.freebsd.org/changeset/base/192496 Log: - Invalidate caches for respective areain KSEG0 in order to prevent further overwriting of KSEG1 data with writeback. Modified: projects/mips/sys/mips/mips/pmap.c Modified: projects/mips/sys/mips/mips/pmap.c ============================================================================== --- projects/mips/sys/mips/mips/pmap.c Wed May 20 22:33:14 2009 (r192495) +++ projects/mips/sys/mips/mips/pmap.c Wed May 20 23:07:10 2009 (r192496) @@ -2411,6 +2411,8 @@ pmap_copy_page(vm_page_t src, vm_page_t * to make sure that data in SDRAM is up to date */ pmap_flush_pvcache(src); + mips_dcache_wbinv_range_index( + MIPS_PHYS_TO_CACHED(phy_dst), NBPG); va_src = MIPS_PHYS_TO_UNCACHED(phy_src); va_dst = MIPS_PHYS_TO_UNCACHED(phy_dst); bcopy((caddr_t)va_src, (caddr_t)va_dst, PAGE_SIZE); @@ -2916,6 +2918,7 @@ pmap_activate(struct thread *td) PCPU_SET(segbase, pmap->pm_segtab); MachSetPID(pmap->pm_asid[PCPU_GET(cpuid)].asid); } + PCPU_SET(curpmap, pmap); critical_exit(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905202307.n4KN7Bk2047121>