From owner-p4-projects@FreeBSD.ORG Tue Nov 4 22:15:37 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0806E106568A; Tue, 4 Nov 2008 22:15:37 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFE401065674 for ; Tue, 4 Nov 2008 22:15:36 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AF6738FC14 for ; Tue, 4 Nov 2008 22:15:36 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mA4MFaQk074651 for ; Tue, 4 Nov 2008 22:15:36 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mA4MFaCn074649 for perforce@freebsd.org; Tue, 4 Nov 2008 22:15:36 GMT (envelope-from gonzo@FreeBSD.org) Date: Tue, 4 Nov 2008 22:15:36 GMT Message-Id: <200811042215.mA4MFaCn074649@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 152493 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 22:15:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=152493 Change 152493 by gonzo@gonzo_jeeves on 2008/11/04 22:15:30 o When zeroing memory area use uncached region in KSEG1 and then invalidate all chache entries for this area. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/pmap.c#37 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/pmap.c#37 (text+ko) ==== @@ -2178,9 +2178,10 @@ #endif if (phys < MIPS_KSEG0_LARGEST_PHYS) { - va = MIPS_PHYS_TO_CACHED(phys); + va = MIPS_PHYS_TO_UNCACHED(phys); bzero((caddr_t)va, PAGE_SIZE); + mips_dcache_wbinv_range(va, PAGE_SIZE); } else { int cpu; struct local_sysmaps *sysm; @@ -2233,8 +2234,9 @@ } else #endif if (phys < MIPS_KSEG0_LARGEST_PHYS) { - va = MIPS_PHYS_TO_CACHED(phys); + va = MIPS_PHYS_TO_UNCACHED(phys); bzero((char *)(caddr_t)va + off, size); + mips_dcache_wbinv_range(va + off, size); } else { int cpu; struct local_sysmaps *sysm; @@ -2271,8 +2273,9 @@ } else #endif if (phys < MIPS_KSEG0_LARGEST_PHYS) { - va = MIPS_PHYS_TO_CACHED(phys); + va = MIPS_PHYS_TO_UNCACHED(phys); bzero((caddr_t)va, PAGE_SIZE); + mips_dcache_wbinv_range(va, PAGE_SIZE); } else { int cpu; struct local_sysmaps *sysm;