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

Function pmap_kremove

freebsd/arm/arm/pmap-v6.c:1325–1338  ·  view source on GitHub ↗

* Remove a page from the kernel pagetables. * Note: not SMP coherent. */

Source from the content-addressed store, hash-verified

1323 * Note: not SMP coherent.
1324 */
1325PMAP_INLINE void
1326pmap_kremove(vm_offset_t va)
1327{
1328 pt1_entry_t *pte1p;
1329 pt2_entry_t *pte2p;
1330
1331 pte1p = kern_pte1(va);
1332 if (pte1_is_section(pte1_load(pte1p))) {
1333 pte1_clear(pte1p);
1334 } else {
1335 pte2p = pt2map_entry(va);
1336 pte2_clear(pte2p);
1337 }
1338}
1339
1340/*
1341 * Share new kernel PT2PG with all pmaps.

Callers 3

pmap_qremoveFunction · 0.70
pmap_kremove_deviceFunction · 0.70
initarmFunction · 0.70

Calls 6

kern_pte1Function · 0.85
pte1_is_sectionFunction · 0.85
pte1_loadFunction · 0.85
pte1_clearFunction · 0.85
pt2map_entryFunction · 0.85
pte2_clearFunction · 0.85

Tested by

no test coverage detected