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
0bd06b71e1
commit
28652967fa
@ -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…
x
Reference in New Issue
Block a user