diff options
author | alc <alc@FreeBSD.org> | 2005-09-03 18:20:20 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2005-09-03 18:20:20 +0000 |
commit | 39788de49ed8c451980050349cf26ad80c4f6eb1 (patch) | |
tree | 15a723ce98510b7ad44411dc2c1fe9370aed91b1 /sys/arm | |
parent | dcf881b1eb5cd7d4101ff068dead8b12f344a057 (diff) | |
download | FreeBSD-src-39788de49ed8c451980050349cf26ad80c4f6eb1.zip FreeBSD-src-39788de49ed8c451980050349cf26ad80c4f6eb1.tar.gz |
Pass a value of type vm_prot_t to pmap_enter_quick() so that it determine
whether the mapping should permit execute access.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/pmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 8083cea..6e9b4ad 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -3536,19 +3536,19 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot, * 2. Not wired. * 3. Read access. * 4. No page table pages. - * 6. Page IS managed. * but is *MUCH* faster than pmap_enter... */ vm_page_t -pmap_enter_quick(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_page_t mpte) +pmap_enter_quick(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot, + vm_page_t mpte) { vm_page_busy(m); vm_page_unlock_queues(); VM_OBJECT_UNLOCK(m->object); mtx_lock(&Giant); - pmap_enter(pmap, va, m, VM_PROT_READ|VM_PROT_EXECUTE, FALSE); + pmap_enter(pmap, va, m, prot & (VM_PROT_READ | VM_PROT_EXECUTE), FALSE); pmap_idcache_wbinv_all(pmap); mtx_unlock(&Giant); VM_OBJECT_LOCK(m->object); |