diff options
author | csjp <csjp@FreeBSD.org> | 2006-12-31 02:50:07 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2006-12-31 02:50:07 +0000 |
commit | 5f18fe70ba428e8115dcb1448a8431f809a6eb38 (patch) | |
tree | 3f9e67c279cebca16b0bc281085f3c5a892c298b /sys/sun4v | |
parent | c91e4c56f635b3ce863d881f8a49d213248826f9 (diff) | |
download | FreeBSD-src-5f18fe70ba428e8115dcb1448a8431f809a6eb38.zip FreeBSD-src-5f18fe70ba428e8115dcb1448a8431f809a6eb38.tar.gz |
Invert the logic inside of two KASSERTS which resulted in two kernel panics
for circumstances which are quite normal.
Discussed with: kmacy
Diffstat (limited to 'sys/sun4v')
-rw-r--r-- | sys/sun4v/sun4v/pmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sun4v/sun4v/pmap.c b/sys/sun4v/sun4v/pmap.c index 8d4d5b4..60da974 100644 --- a/sys/sun4v/sun4v/pmap.c +++ b/sys/sun4v/sun4v/pmap.c @@ -1520,7 +1520,7 @@ pmap_invalidate_range(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, int clearts } - KASSERT(sva >= eva, ("invalidating negative or zero range sva=0x%lx eva=0x%lx", sva, eva)); + KASSERT(sva < eva, ("invalidating negative or zero range sva=0x%lx eva=0x%lx", sva, eva)); if (cleartsb == TRUE) tsb_clear_range(&pmap->pm_tsb, sva, eva); @@ -1551,8 +1551,7 @@ void pmap_invalidate_all(pmap_t pmap) { - KASSERT(pmap == kernel_pmap, - ("invalidate_all called on kernel_pmap")); + KASSERT(pmap != kernel_pmap, ("invalidate_all called on kernel_pmap")); tsb_clear(&pmap->pm_tsb); |