Page MenuHomeFreeBSD

D32854.id98086.diff
No OneTemporary

D32854.id98086.diff

Index: sys/dev/hwpmc/hwpmc_arm64.c
===================================================================
--- sys/dev/hwpmc/hwpmc_arm64.c
+++ sys/dev/hwpmc/hwpmc_arm64.c
@@ -483,6 +483,16 @@
pc->pc_hwpmcs[i + first_ri] = phw;
}
+ /*
+ * Disable all counters and overflow interrupts. Upon reset they are in
+ * an undefined state.
+ *
+ * Don't issue an isb here, just wait for the one in arm64_pmcr_write()
+ * to make the writes visible.
+ */
+ WRITE_SPECIALREG(pmcntenclr_el0, 0xffffffff);
+ WRITE_SPECIALREG(pmintenclr_el1, 0xffffffff);
+
/* Enable unit */
pmcr = arm64_pmcr_read();
pmcr |= PMCR_E;

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 12, 8:17 PM (3 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26911525
Default Alt Text
D32854.id98086.diff (618 B)

Event Timeline