Retire PVO_EXECUTABLE. It's neither used nor set correctly.
This commit is contained in:
parent
21b787b81a
commit
eb2af3e758
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269368
@ -1184,9 +1184,6 @@ moea_enter_locked(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
|
||||
} else
|
||||
pte_lo |= PTE_BR;
|
||||
|
||||
if (prot & VM_PROT_EXECUTE)
|
||||
pvo_flags |= PVO_EXECUTABLE;
|
||||
|
||||
if (wired)
|
||||
pvo_flags |= PVO_WIRED;
|
||||
|
||||
@ -1742,8 +1739,6 @@ moea_protect(mmu_t mmu, pmap_t pm, vm_offset_t sva, vm_offset_t eva,
|
||||
for (pvo = RB_NFIND(pvo_tree, &pm->pmap_pvo, &key);
|
||||
pvo != NULL && PVO_VADDR(pvo) < eva; pvo = tpvo) {
|
||||
tpvo = RB_NEXT(pvo_tree, &pm->pmap_pvo, pvo);
|
||||
if ((prot & VM_PROT_EXECUTE) == 0)
|
||||
pvo->pvo_vaddr &= ~PVO_EXECUTABLE;
|
||||
|
||||
/*
|
||||
* Grab the PTE pointer before we diddle with the cached PTE
|
||||
@ -1999,8 +1994,6 @@ moea_pvo_enter(pmap_t pm, uma_zone_t zone, struct pvo_head *pvo_head,
|
||||
pvo->pvo_pmap = pm;
|
||||
LIST_INSERT_HEAD(&moea_pvo_table[ptegidx], pvo, pvo_olink);
|
||||
pvo->pvo_vaddr &= ~ADDR_POFF;
|
||||
if (flags & VM_PROT_EXECUTE)
|
||||
pvo->pvo_vaddr |= PVO_EXECUTABLE;
|
||||
if (flags & PVO_WIRED)
|
||||
pvo->pvo_vaddr |= PVO_WIRED;
|
||||
if (pvo_head != &moea_pvo_kunmanaged)
|
||||
|
@ -112,7 +112,6 @@ RB_PROTOTYPE(pvo_tree, pvo_entry, pvo_plink, pvo_vaddr_compare);
|
||||
#define PVO_PTEGIDX_VALID 0x008UL /* slot is valid */
|
||||
#define PVO_WIRED 0x010UL /* PVO entry is wired */
|
||||
#define PVO_MANAGED 0x020UL /* PVO entry is managed */
|
||||
#define PVO_EXECUTABLE 0x040UL /* PVO entry is executable */
|
||||
#define PVO_BOOTSTRAP 0x080UL /* PVO entry allocated during
|
||||
bootstrap */
|
||||
#define PVO_LARGE 0x200UL /* large page */
|
||||
|
Loading…
Reference in New Issue
Block a user