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

Function pmap_accessed_bit

freebsd/amd64/amd64/pmap.c:259–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259static __inline pt_entry_t
260pmap_accessed_bit(pmap_t pmap)
261{
262 pt_entry_t mask;
263
264 switch (pmap->pm_type) {
265 case PT_X86:
266 case PT_RVI:
267 mask = X86_PG_A;
268 break;
269 case PT_EPT:
270 if (pmap_emulate_ad_bits(pmap))
271 mask = EPT_PG_READ;
272 else
273 mask = EPT_PG_A;
274 break;
275 default:
276 panic("pmap_accessed_bit: invalid pm_type %d", pmap->pm_type);
277 }
278
279 return (mask);
280}
281
282static __inline pt_entry_t
283pmap_modified_bit(pmap_t pmap)

Callers 15

pmap_allocpte_nosleepFunction · 0.85
reclaim_pv_chunk_domainFunction · 0.85
pmap_demote_pde_lockedFunction · 0.85
pmap_remove_pdeFunction · 0.85
pmap_remove_pteFunction · 0.85
pmap_remove_allFunction · 0.85
pmap_promote_pdeFunction · 0.85
pmap_enterFunction · 0.85
pmap_object_init_ptFunction · 0.85
pmap_copyFunction · 0.85
pmap_page_test_mappingsFunction · 0.85
pmap_ts_referencedFunction · 0.85

Calls 2

pmap_emulate_ad_bitsFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected