Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/pmap.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 8,284 Lines • ▼ Show 20 Lines | pmap_remove_pages(pmap_t pmap) | ||||
KASSERT(pmap == PCPU_GET(curpmap), ("non-current pmap %p", pmap)); | KASSERT(pmap == PCPU_GET(curpmap), ("non-current pmap %p", pmap)); | ||||
#ifdef INVARIANTS | #ifdef INVARIANTS | ||||
{ | { | ||||
cpuset_t other_cpus; | cpuset_t other_cpus; | ||||
other_cpus = all_cpus; | other_cpus = all_cpus; | ||||
critical_enter(); | critical_enter(); | ||||
CPU_CLR(PCPU_GET(cpuid), &other_cpus); | CPU_CLR(PCPU_GET(cpuid), &other_cpus); | ||||
CPU_AND(&other_cpus, &pmap->pm_active); | CPU_AND(&other_cpus, &other_cpus, &pmap->pm_active); | ||||
critical_exit(); | critical_exit(); | ||||
KASSERT(CPU_EMPTY(&other_cpus), ("pmap active %p", pmap)); | KASSERT(CPU_EMPTY(&other_cpus), ("pmap active %p", pmap)); | ||||
} | } | ||||
#endif | #endif | ||||
lock = NULL; | lock = NULL; | ||||
PG_M = pmap_modified_bit(pmap); | PG_M = pmap_modified_bit(pmap); | ||||
PG_V = pmap_valid_bit(pmap); | PG_V = pmap_valid_bit(pmap); | ||||
▲ Show 20 Lines • Show All 3,647 Lines • Show Last 20 Lines |