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

Function pmap_pte_props

freebsd/amd64/amd64/pmap.c:8900–8911  ·  view source on GitHub ↗

Adjust the properties for a leaf page table entry. */

Source from the content-addressed store, hash-verified

8898
8899/* Adjust the properties for a leaf page table entry. */
8900static __inline void
8901pmap_pte_props(pt_entry_t *pte, u_long bits, u_long mask)
8902{
8903 u_long opte, npte;
8904
8905 opte = *(u_long *)pte;
8906 do {
8907 npte = opte & ~mask;
8908 npte |= bits;
8909 } while (npte != opte && !atomic_fcmpset_long((u_long *)pte, &opte,
8910 npte));
8911}
8912
8913/*
8914 * Map a set of physical memory pages into the kernel virtual

Callers 1

pmap_change_props_lockedFunction · 0.85

Calls 1

atomic_fcmpset_longFunction · 0.50

Tested by

no test coverage detected