diff options
author | Mark Johnston <markj@FreeBSD.org> | 2019-12-10 18:14:50 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2019-12-10 18:14:50 +0000 |
commit | 5cff1f4dc3b22c87bfba0a7ac91e8857dc091a60 (patch) | |
tree | efe1015a11bbfef853c9271cc19c28c6357423b3 /sys/arm/include | |
parent | be35d6745b4222c99587c0c1187259be94f615b9 (diff) | |
download | src-5cff1f4dc3b22c87bfba0a7ac91e8857dc091a60.tar.gz src-5cff1f4dc3b22c87bfba0a7ac91e8857dc091a60.zip |
Introduce vm_page_astate.
This is a 32-bit structure embedded in each vm_page, consisting mostly
of page queue state. The use of a structure makes it easy to store a
snapshot of a page's queue state in a stack variable and use cmpset
loops to update that state without requiring the page lock.
This change merely adds the structure and updates references to atomic
state fields. No functional change intended.
Reviewed by: alc, jeff, kib
Sponsored by: Netflix, Intel
Differential Revision: https://reviews.freebsd.org/D22650
Notes
Notes:
svn path=/head/; revision=355586
Diffstat (limited to 'sys/arm/include')
-rw-r--r-- | sys/arm/include/pmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/include/pmap.h b/sys/arm/include/pmap.h index e7fd53e5c42f..3983dd9988c6 100644 --- a/sys/arm/include/pmap.h +++ b/sys/arm/include/pmap.h @@ -47,7 +47,7 @@ extern vm_offset_t virtual_avail; extern vm_offset_t virtual_end; void *pmap_kenter_temporary(vm_paddr_t, int); -#define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0) +#define pmap_page_is_write_mapped(m) (((m)->a.flags & PGA_WRITEABLE) != 0) void pmap_page_set_memattr(vm_page_t, vm_memattr_t); void *pmap_mapdev(vm_paddr_t, vm_size_t); |