Do not use pv_kva on ARMv6/v7 and save some space on each vm_page. It's only
relevant for older ARM variants (with virtual cache). Submitted by: Zbigniew Bodek <zbb@semihalf.com> Reviewed by: gber Sponsored by: The FreeBSD Foundation, Semihalf
This commit is contained in:
parent
ec34d19b9d
commit
836f82ff43
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254536
@ -4365,6 +4365,6 @@ pmap_page_set_memattr(vm_page_t m, vm_memattr_t ma)
|
||||
* uncacheable, being careful to sync caches and PTEs (and maybe
|
||||
* invalidate TLB?) for any current mapping it modifies.
|
||||
*/
|
||||
if (m->md.pv_kva != 0 || TAILQ_FIRST(&m->md.pv_list) != NULL)
|
||||
if (TAILQ_FIRST(&m->md.pv_list) != NULL)
|
||||
panic("Can't change memattr on page with existing mappings");
|
||||
}
|
||||
|
@ -121,7 +121,9 @@ struct pv_chunk;
|
||||
struct md_page {
|
||||
int pvh_attrs;
|
||||
vm_memattr_t pv_memattr;
|
||||
#if (ARM_MMU_V6 + ARM_MMU_V7) == 0
|
||||
vm_offset_t pv_kva; /* first kernel VA mapping */
|
||||
#endif
|
||||
TAILQ_HEAD(,pv_entry) pv_list;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user