Adjust the properties for a leaf page table entry. */
| 8898 | |
| 8899 | /* Adjust the properties for a leaf page table entry. */ |
| 8900 | static __inline void |
| 8901 | pmap_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 |
no test coverage detected