Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2009 16:09:29 GMT
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 158383 for review
Message-ID:  <200902271609.n1RG9T4k011451@repoman.freebsd.org>

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

Change 158383 by lulf@lulf_carrot on 2009/02/27 16:08:48

	- Don't do page table lookups on p1 and p2 segments.

Affected files ...

.. //depot/projects/avr32/src/sys/avr32/avr32/pmap.c#9 edit

Differences ...

==== //depot/projects/avr32/src/sys/avr32/avr32/pmap.c#9 (text+ko) ====

@@ -626,6 +626,12 @@
 {
 	pt_entry_t *ent;
 
+	/* Don't lookup in page tables for P1 and P2 segments. */
+	if ((va & AVR32_SEG_MASK) == AVR32_SEG_P1)
+		return (AVR32_P1_TO_PHYS(va));
+	else if ((va & AVR32_SEG_MASK) == AVR32_SEG_P2)
+		return (AVR32_P2_TO_PHYS(va));
+
 	ent = pmap_pte(pmap, va);
 	return pfn_get(*ent);
 }



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