PERFORCE change 28537 for review
Peter Wemm
peter at FreeBSD.org
Tue Apr 8 11:44:10 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28537
Change 28537 by peter at peter_daintree on 2003/04/08 11:43:39
untangle
Affected files ...
.. //depot/projects/hammer/sys/x86_64/include/pmap.h#16 edit
Differences ...
==== //depot/projects/hammer/sys/x86_64/include/pmap.h#16 (text+ko) ====
@@ -178,10 +178,10 @@
{
vm_paddr_t pa;
-/* XXX the acronyms are giving me headaches at the moment */
-/* XXX if ((pa = (vm_offset_t) PTD[va >> PDRSHIFT]) & PG_PS) {
+ pa = PTD[va >> PDRSHIFT];
+ if (pa & PG_PS) {
pa = (pa & ~(NBPDR - 1)) | (va & (NBPDR - 1));
- } else */ {
+ } else {
pa = *vtopte(va);
pa = (pa & PG_FRAME) | (va & PAGE_MASK);
}
More information about the p4-projects
mailing list