diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2018-07-19 21:06:58 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2018-07-19 21:06:58 +0000 |
commit | 038c6159290739705a4153ae8057917526ba9578 (patch) | |
tree | 0bba8274bb05033aa748a5177a9248ab5f9700c8 /sys/powerpc | |
parent | 1dbd2e8c7c8ca836c69b4e85ecb0ea693237c619 (diff) | |
download | src-test2-038c6159290739705a4153ae8057917526ba9578.tar.gz src-test2-038c6159290739705a4153ae8057917526ba9578.zip |
Notes
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/pmap.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/sys/powerpc/include/pmap.h b/sys/powerpc/include/pmap.h index 8d1cc5aaa0ff..d96de742e500 100644 --- a/sys/powerpc/include/pmap.h +++ b/sys/powerpc/include/pmap.h @@ -150,6 +150,12 @@ struct pmap { struct pvo_tree pmap_pvo; }; +struct md_page { + volatile int32_t mdpg_attrs; + vm_memattr_t mdpg_cache_attrs; + struct pvo_head mdpg_pvoh; +}; + #define pmap_page_get_memattr(m) ((m)->md.mdpg_cache_attrs) #define pmap_page_is_mapped(m) (!LIST_EMPTY(&(m)->md.mdpg_pvoh)) @@ -206,6 +212,11 @@ struct pv_entry { }; typedef struct pv_entry *pv_entry_t; +struct md_page { + TAILQ_HEAD(, pv_entry) pv_list; + int pv_tracked; +}; + #define pmap_page_get_memattr(m) VM_MEMATTR_DEFAULT #define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list)) @@ -221,20 +232,6 @@ struct pmap { }; #endif /* AIM */ -struct md_page { - union { - struct md_page_booke { - TAILQ_HEAD(, pv_entry) pv_list; - int pv_tracked; - }; - struct md_page_aim { - volatile int32_t mdpg_attrs; - vm_memattr_t mdpg_cache_attrs; - struct pvo_head mdpg_pvoh; - }; - }; -}; - extern struct pmap kernel_pmap_store; #define kernel_pmap (&kernel_pmap_store) |