mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 07:31:11 +00:00
Fix a typo in the PMAP_PTE_SET_CACHE_BITS macro.
The second argument should have been "pa" not "ps". It worked by accident because the argument was always "pa" which was an in-scope local variable. Submitted by: sson Reviewed by: jhb, kevans Obtained from: CheriBSD MFC after: 3 days Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D22338
This commit is contained in:
parent
4d893465df
commit
301b49d2e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354688
|
@ -319,7 +319,7 @@ pmap_pte_cache_bits(vm_paddr_t pa, vm_page_t m)
|
|||
ma = VM_MEMATTR_UNCACHEABLE;
|
||||
return PTE_C(ma);
|
||||
}
|
||||
#define PMAP_PTE_SET_CACHE_BITS(pte, ps, m) { \
|
||||
#define PMAP_PTE_SET_CACHE_BITS(pte, pa, m) { \
|
||||
pte &= ~PTE_C_MASK; \
|
||||
pte |= pmap_pte_cache_bits(pa, m); \
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue