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

Function pmap_kenter_attr

freebsd/amd64/amd64/pmap.c:3799–3808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3797}
3798
3799static __inline void
3800pmap_kenter_attr(vm_offset_t va, vm_paddr_t pa, int mode)
3801{
3802 pt_entry_t *pte;
3803 int cache_bits;
3804
3805 pte = vtopte(va);
3806 cache_bits = pmap_cache_bits(kernel_pmap, mode, 0);
3807 pte_store(pte, pa | X86_PG_RW | X86_PG_V | pg_g | pg_nx | cache_bits);
3808}
3809
3810/*
3811 * Remove a page from the kernel pagetables.

Callers 1

pmap_mapdev_internalFunction · 0.70

Calls 2

vtopteFunction · 0.85
pmap_cache_bitsFunction · 0.70

Tested by

no test coverage detected