summaryrefslogtreecommitdiffstats
path: root/sys/arm/include
diff options
context:
space:
mode:
authorgber <gber@FreeBSD.org>2013-05-23 12:15:23 +0000
committergber <gber@FreeBSD.org>2013-05-23 12:15:23 +0000
commit8e77450528c5560196b1e6961c693e098ffa1f0f (patch)
treed9dd08dd144debaf34524b7df95feb26a7eb9b05 /sys/arm/include
parent8c69e11fe86a9d9355710f76fabac15adf2d8a43 (diff)
downloadFreeBSD-src-8e77450528c5560196b1e6961c693e098ffa1f0f.zip
FreeBSD-src-8e77450528c5560196b1e6961c693e098ffa1f0f.tar.gz
Improve, optimize and clean-up ARMv6/v7 memory management related code.
Use pmap_find_pv if needed instead of multiplying its code throughout pmap-v6. Avoid possible NULL pointer dereference in pmap_enter_locked() When trying to get m->md.pv_memattr, make sure that m != NULL, in particular that vector_page is set to be NULL. Do not set PGA_REFERENCED flag in pmap_enter_pv(). On ARM any new page reference will result in either entering the new mapping by calling pmap_enter, etc. or fixing-up the existing mapping in pmap_fault_fixup(). Therefore we set PGA_REFERENCED flag in the earlier mentioned cases and setting it later in pmap_enter_pv() is just waste of cycles. Delete unused pm_pdir pointer from the pmap structure. Rearrange brackets in the fault cause detection in trap.c Place the brackets correctly in order to see course of the conditions instantaneously. Unify naming in pmap-v6.c and improve style Use naming common for whole pmap and compatible with other pmaps, improve style where possible: pm -> pmap pg -> m opg -> om *pt -> *ptep *pte -> *ptep *pde -> *pdep Submitted by: Zbigniew Bodek <zbb@semihalf.com> Sponsored by: The FreeBSD Foundation, Semihalf
Diffstat (limited to 'sys/arm/include')
-rw-r--r--sys/arm/include/pmap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/arm/include/pmap.h b/sys/arm/include/pmap.h
index e91fce7..445b43f 100644
--- a/sys/arm/include/pmap.h
+++ b/sys/arm/include/pmap.h
@@ -150,7 +150,6 @@ struct pmap {
u_int8_t pm_domain;
struct l1_ttable *pm_l1;
struct l2_dtable *pm_l2[L2_SIZE];
- pd_entry_t *pm_pdir; /* KVA of page directory */
cpuset_t pm_active; /* active on cpus */
struct pmap_statistics pm_stats; /* pmap statictics */
#if (ARM_MMU_V6 + ARM_MMU_V7) != 0
OpenPOWER on IntegriCloud