arm64 pmap: Convert panic()s to KASSERT()s
There is no reason for the ATTR_SW_NO_PROMOTE checks in
pmap_update_{entry,strided}() to be panic()s instead of KASSERT()s.
Requested by: markj
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D45424
This commit is contained in:
@@ -4565,9 +4565,8 @@ pmap_update_entry(pmap_t pmap, pd_entry_t *ptep, pd_entry_t newpte,
|
||||
register_t intr;
|
||||
|
||||
PMAP_LOCK_ASSERT(pmap, MA_OWNED);
|
||||
|
||||
if ((newpte & ATTR_SW_NO_PROMOTE) != 0)
|
||||
panic("%s: Updating non-promote pte", __func__);
|
||||
KASSERT((newpte & ATTR_SW_NO_PROMOTE) == 0,
|
||||
("%s: Updating non-promote pte", __func__));
|
||||
|
||||
/*
|
||||
* Ensure we don't get switched out with the page table in an
|
||||
@@ -4608,9 +4607,8 @@ pmap_update_strided(pmap_t pmap, pd_entry_t *ptep, pd_entry_t *ptep_end,
|
||||
register_t intr;
|
||||
|
||||
PMAP_LOCK_ASSERT(pmap, MA_OWNED);
|
||||
|
||||
if ((newpte & ATTR_SW_NO_PROMOTE) != 0)
|
||||
panic("%s: Updating non-promote pte", __func__);
|
||||
KASSERT((newpte & ATTR_SW_NO_PROMOTE) == 0,
|
||||
("%s: Updating non-promote pte", __func__));
|
||||
|
||||
/*
|
||||
* Ensure we don't get switched out with the page table in an
|
||||
|
||||
Reference in New Issue
Block a user