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

Function pmap_quick_enter_page

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

Source from the content-addressed store, hash-verified

5994}
5995
5996vm_offset_t
5997pmap_quick_enter_page(vm_page_t m)
5998{
5999 struct pcpu *pc;
6000 pt2_entry_t *pte2p;
6001
6002 critical_enter();
6003 pc = get_pcpu();
6004 pte2p = pc->pc_qmap_pte2p;
6005
6006 KASSERT(pte2_load(pte2p) == 0, ("%s: PTE2 busy", __func__));
6007
6008 pte2_store(pte2p, PTE2_KERN_NG(VM_PAGE_TO_PHYS(m), PTE2_AP_KRW,
6009 vm_page_pte2_attr(m)));
6010 return (pc->pc_qmap_addr);
6011}
6012
6013void
6014pmap_quick_remove_page(vm_offset_t addr)

Callers 2

dma_dcache_syncFunction · 0.70
bus_dmamap_syncFunction · 0.70

Calls 5

get_pcpuFunction · 0.85
pte2_loadFunction · 0.85
pte2_storeFunction · 0.85
vm_page_pte2_attrFunction · 0.85
critical_enterFunction · 0.50

Tested by

no test coverage detected