PERFORCE change 158383 for review
Ulf Lilleengen
lulf at FreeBSD.org
Fri Feb 27 08:09:32 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=158383
Change 158383 by lulf at 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);
}
More information about the p4-projects
mailing list