Date: Thu, 3 Jul 2003 16:20:33 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 34043 for review Message-ID: <200307032320.h63NKXS0053282@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=34043 Change 34043 by peter@peter_daintree on 2003/07/03 16:20:01 Deal with large pages in pmap_pte(). This kinda sucks, but other code expects it. More to the point, the i386 code intentionally didn't test for the PG_PS case since it knew that pmap_pte* on i386 would return the pde for a large page case. Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/pmap.c#23 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/pmap.c#23 (text+ko) ==== @@ -330,6 +330,8 @@ pde = pmap_pde(pmap, va); if (pde == NULL || (*pde & PG_V) == 0) return NULL; + if ((*pde & PG_PS) != 0) /* compat with i386 pmap_pte() */ + return ((pt_entry_t *)pde); pte = (pt_entry_t *)PHYS_TO_DMAP(*pde & PG_FRAME); return (&pte[pmap_pte_index(va)]); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307032320.h63NKXS0053282>