Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2006 19:16:34 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 101787 for review
Message-ID:  <200607171916.k6HJGYW3030006@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101787

Change 101787 by gonzo@gonzo_hq on 2006/07/17 19:15:55

	o Keep UMA allocations in KSEG0. Use KSEG1 only for non-cached
	    access to memory (e.g. zeroing).

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/pmap.c#6 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/pmap.c#6 (text+ko) ====

@@ -250,7 +250,7 @@
 	pa = phys_avail[0];
 	phys_avail[0] += size;
 
-	va = MIPS_PHYS_TO_KSEG1(pa);
+	va = MIPS_PHYS_TO_KSEG0(pa);
 	bzero((caddr_t) va, size);
 	return va;
 }
@@ -354,7 +354,7 @@
 			break;
 	}
 
-	va = (void *)MIPS_PHYS_TO_KSEG1(m->phys_addr);
+	va = (void *)MIPS_PHYS_TO_KSEG0(m->phys_addr);
 	if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0)
 		bzero(va, PAGE_SIZE);
 	return (va);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607171916.k6HJGYW3030006>