mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Fix the aflag shift on big-endian platforms after r355672.
The structure offset is zero regardless of endianness. Reported by: brooks Pointy hat: markj
This commit is contained in:
parent
55b7a0e1e7
commit
c2f22e9790
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355874
|
@ -763,7 +763,11 @@ void vm_page_assert_pga_writeable(vm_page_t m, uint16_t bits);
|
|||
#define VM_PAGE_ASSERT_PGA_WRITEABLE(m, bits) (void)0
|
||||
#endif
|
||||
|
||||
#define VM_PAGE_AFLAG_SHIFT (__offsetof(vm_page_astate_t, flags) * NBBY)
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
#define VM_PAGE_AFLAG_SHIFT 16
|
||||
#else
|
||||
#define VM_PAGE_AFLAG_SHIFT 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Load a snapshot of a page's 32-bit atomic state.
|
||||
|
|
Loading…
Reference in a new issue