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

Function pmap_kremove_device

freebsd/mips/mips/pmap.c:869–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869void
870pmap_kremove_device(vm_offset_t va, vm_size_t size)
871{
872
873 KASSERT((size & PAGE_MASK) == 0,
874 ("%s: device mapping not page-sized", __func__));
875
876 /*
877 * XXXCEM: Similar to pmap_kenter_device, this is inefficient on SMP,
878 * in that pages are invalidated individually instead of a single range
879 * rendezvous.
880 */
881 for (; size > 0; size -= PAGE_SIZE) {
882 pmap_kremove(va);
883 va += PAGE_SIZE;
884 }
885}
886
887/*
888 * remove a page from the kernel pagetables

Callers 1

pmap_unmapdevFunction · 0.50

Calls 1

pmap_kremoveFunction · 0.70

Tested by

no test coverage detected