Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156415526
D32854.id98085.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
558 B
Referenced Files
None
Subscribers
None
D32854.id98085.diff
View Options
Index: sys/dev/hwpmc/hwpmc_arm64.c
===================================================================
--- sys/dev/hwpmc/hwpmc_arm64.c
+++ sys/dev/hwpmc/hwpmc_arm64.c
@@ -483,6 +483,15 @@
pc->pc_hwpmcs[i + first_ri] = phw;
}
+ /*
+ * Disable all counters and overflow interrupts. Upon reset they are in
+ * an undefined state.
+ *
+ * XXX: arm64_pmcr_write() will issue an isb
+ */
+ WRITE_SPECIALREG(pmcntenclr_el0, 0xffffffff);
+ WRITE_SPECIALREG(pmintenclr_el1, 0xffffffff);
+
/* Enable unit */
pmcr = arm64_pmcr_read();
pmcr |= PMCR_E;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 14, 1:08 PM (2 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33024803
Default Alt Text
D32854.id98085.diff (558 B)
Attached To
Mode
D32854: hwpmc: initialize arm64 counter/interrupt state
Attached
Detach File
Event Timeline
Log In to Comment