mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Skip a KASSERT which isn't appropriate when not employing page coloring.
Reported by: Michael Moll
This commit is contained in:
parent
7d924a46c2
commit
760d65b894
1 changed files with 4 additions and 3 deletions
|
|
@ -833,14 +833,15 @@ pmap_cache_remove(vm_page_t m, vm_offset_t va)
|
|||
m->md.colors[DCACHE_COLOR(va)]);
|
||||
KASSERT((m->flags & PG_FICTITIOUS) == 0,
|
||||
("pmap_cache_remove: fake page"));
|
||||
KASSERT(m->md.colors[DCACHE_COLOR(va)] > 0,
|
||||
("pmap_cache_remove: no mappings %d <= 0",
|
||||
m->md.colors[DCACHE_COLOR(va)]));
|
||||
PMAP_STATS_INC(pmap_ncache_remove);
|
||||
|
||||
if (dcache_color_ignore != 0)
|
||||
return;
|
||||
|
||||
KASSERT(m->md.colors[DCACHE_COLOR(va)] > 0,
|
||||
("pmap_cache_remove: no mappings %d <= 0",
|
||||
m->md.colors[DCACHE_COLOR(va)]));
|
||||
|
||||
/*
|
||||
* Find the color for this virtual address and note the removal of
|
||||
* the mapping.
|
||||
|
|
|
|||
Loading…
Reference in a new issue