diff options
author | cognet <cognet@FreeBSD.org> | 2012-12-19 00:24:31 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2012-12-19 00:24:31 +0000 |
commit | 58faac84ca39267f2f9368819febdac421e89a6a (patch) | |
tree | 14bcf41da925fb77b6562d71e57e5a6e413b3470 /sys/arm/include/pmap.h | |
parent | 99451e9e7417c523343c14e3808924954ae700da (diff) | |
download | FreeBSD-src-58faac84ca39267f2f9368819febdac421e89a6a.zip FreeBSD-src-58faac84ca39267f2f9368819febdac421e89a6a.tar.gz |
Properly implement pmap_[get|set]_memattr
Submitted by: Ian Lepore <freebsd@damnhippie.dyndns.org>
Diffstat (limited to 'sys/arm/include/pmap.h')
-rw-r--r-- | sys/arm/include/pmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arm/include/pmap.h b/sys/arm/include/pmap.h index e20bf18..e58ba9f 100644 --- a/sys/arm/include/pmap.h +++ b/sys/arm/include/pmap.h @@ -96,10 +96,10 @@ enum mem_type { #endif -#define pmap_page_get_memattr(m) VM_MEMATTR_DEFAULT +#define pmap_page_get_memattr(m) ((m)->md.pv_memattr) #define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list)) #define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0) -#define pmap_page_set_memattr(m, ma) (void)0 +void pmap_page_set_memattr(vm_page_t m, vm_memattr_t ma); /* * Pmap stuff @@ -119,6 +119,7 @@ struct pv_entry; struct md_page { int pvh_attrs; + vm_memattr_t pv_memattr; vm_offset_t pv_kva; /* first kernel VA mapping */ TAILQ_HEAD(,pv_entry) pv_list; }; |