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

Function pmap_kremove

freebsd/mips/mips/pmap.c:890–903  ·  view source on GitHub ↗

* remove a page from the kernel pagetables */ PMAP_INLINE */

Source from the content-addressed store, hash-verified

888 * remove a page from the kernel pagetables
889 */
890 /* PMAP_INLINE */ void
891pmap_kremove(vm_offset_t va)
892{
893 pt_entry_t *pte;
894
895 /*
896 * Write back all caches from the page being destroyed
897 */
898 mips_dcache_wbinv_range_index(va, PAGE_SIZE);
899
900 pte = pmap_pte(kernel_pmap, va);
901 *pte = PTE_G;
902 pmap_invalidate_page(kernel_pmap, va);
903}
904
905/*
906 * Used to map a range of physical addresses into kernel

Callers 2

pmap_kremove_deviceFunction · 0.70
unmap_ucodeFunction · 0.50

Calls 2

pmap_pteFunction · 0.70
pmap_invalidate_pageFunction · 0.70

Tested by

no test coverage detected