summaryrefslogtreecommitdiffstats
path: root/sys/pci/agpreg.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-08-09 20:44:41 +0000
committermarcel <marcel@FreeBSD.org>2004-08-09 20:44:41 +0000
commit1e00fe7b057fa9e2896700e40f006617e0d70e6c (patch)
tree8cfcefc4b6f79b35021de3d83c333ca1875fd57f /sys/pci/agpreg.h
parent38d3d854febde45875e709b943a720af3ac601da (diff)
downloadFreeBSD-src-1e00fe7b057fa9e2896700e40f006617e0d70e6c.zip
FreeBSD-src-1e00fe7b057fa9e2896700e40f006617e0d70e6c.tar.gz
Better preserve the original protection for the mappings we maintain.
The hardware always gives read access for privilege level 0, which means that we cannot use the hardware access rights and privilege level in the PTE to test whether there's a change in protection. So, we save the original vm_prot_t in the PTE as well. Add pmap_pte_prot() to set the proper access rights and privilege level on the PTE given a pmap and the requested protection. The above allows us to compare the protection in pmap_extract_and_hold() which was missing. While in pmap_extract_and_hold(), add pmap locking. While here, clean up most (i.e. all but one) PTE macros we inherited from alpha. They were either unused, used inconsistently, badly named or simply weren't beneficial. We save the wired and managed state of the PTE in distinct (bit) fields. While in pte.h, s/u_int64_t/uint64_t/g pmap locking obtained from: alc@ feedback & review by: alc@
Diffstat (limited to 'sys/pci/agpreg.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud