Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178284783
D62372.1796427177.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
856 B
Referenced Files
None
Subscribers
None
D62372.1796427177.diff
View Options
diff --git a/sys/arm64/arm64/gic_v3.c b/sys/arm64/arm64/gic_v3.c
--- a/sys/arm64/arm64/gic_v3.c
+++ b/sys/arm64/arm64/gic_v3.c
@@ -1224,6 +1224,7 @@
bus_size_t offset;
u_int cpuid;
size_t us_left = 1000000;
+ uint32_t rwp_mask;
cpuid = PCPU_GET(cpuid);
@@ -1231,17 +1232,19 @@
case DIST:
res = sc->gic_dist;
offset = 0;
+ rwp_mask = GICD_CTLR_RWP;
break;
case REDIST:
res = sc->gic_redists.pcpu[cpuid].res;
offset = sc->gic_redists.pcpu[PCPU_GET(cpuid)].offset;
+ rwp_mask = GICR_CTLR_RWP;
break;
default:
KASSERT(0, ("%s: Attempt to wait for unknown RWP", __func__));
return;
}
- while ((bus_read_4(res, offset + GICD_CTLR) & GICD_CTLR_RWP) != 0) {
+ while ((bus_read_4(res, offset + GICD_CTLR) & rwp_mask) != 0) {
DELAY(1);
if (us_left-- == 0)
panic("GICD Register write pending for too long");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 11:32 PM (13 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42209404
Default Alt Text
D62372.1796427177.diff (856 B)
Attached To
Mode
D62372: arm64/gic_v3: Fix RWP mask in gic_v3_wait_for_rwp
Attached
Detach File
Event Timeline