Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151210686
D45424.id139278.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
806 B
Referenced Files
None
Subscribers
None
D45424.id139278.diff
View Options
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -4565,9 +4565,8 @@
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 @@
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 9:00 PM (13 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31049436
Default Alt Text
D45424.id139278.diff (806 B)
Attached To
Mode
D45424: arm64 pmap: Convert panic()s to KASSERT()s
Attached
Detach File
Event Timeline
Log In to Comment