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

Function pmap_kenter_attr

freebsd/i386/i386/pmap.c:1773–1781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1771}
1772
1773static __inline void
1774pmap_kenter_attr(vm_offset_t va, vm_paddr_t pa, int mode)
1775{
1776 pt_entry_t *pte;
1777
1778 pte = vtopte(va);
1779 pte_store(pte, pa | PG_RW | PG_V | pmap_cache_bits(kernel_pmap,
1780 mode, 0));
1781}
1782
1783/*
1784 * Remove a page from the kernel pagetables.

Callers 1

Calls 2

vtopteFunction · 0.85
pmap_cache_bitsFunction · 0.70

Tested by

no test coverage detected