MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pmap_pte_cache_bits

Function pmap_pte_cache_bits

freebsd/mips/mips/pmap.c:313–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311#endif /* !__mips_n64 */
312
313static __inline int
314pmap_pte_cache_bits(vm_paddr_t pa, vm_page_t m)
315{
316 vm_memattr_t ma;
317
318 ma = pmap_page_get_memattr(m);
319 if (ma == VM_MEMATTR_WRITE_BACK && !is_cacheable_mem(pa))
320 ma = VM_MEMATTR_UNCACHEABLE;
321 return PTE_C(ma);
322}
323#define PMAP_PTE_SET_CACHE_BITS(pte, pa, m) { \
324 pte &= ~PTE_C_MASK; \
325 pte |= pmap_pte_cache_bits(pa, m); \

Callers

nothing calls this directly

Calls 1

is_cacheable_memFunction · 0.85

Tested by

no test coverage detected