Page MenuHomeFreeBSD

D50427.diff
No OneTemporary

D50427.diff

diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c
--- a/sys/dev/hwpmc/hwpmc_arm64.c
+++ b/sys/dev/hwpmc/hwpmc_arm64.c
@@ -113,7 +113,7 @@
/*
* Performance Monitors Control Register
*/
-static uint32_t
+static uint64_t
arm64_pmcr_read(void)
{
uint32_t reg;
@@ -124,7 +124,7 @@
}
static void
-arm64_pmcr_write(uint32_t reg)
+arm64_pmcr_write(uint64_t reg)
{
WRITE_SPECIALREG(pmcr_el0, reg);
@@ -500,7 +500,7 @@
static int
arm64_pcpu_fini(struct pmc_mdep *md, int cpu)
{
- uint32_t pmcr;
+ uint64_t pmcr;
PMCDBG0(MDP, INI, 1, "arm64-pcpu-fini");
@@ -521,7 +521,7 @@
struct pmc_mdep *pmc_mdep;
struct pmc_classdep *pcd;
int classes, idcode, impcode;
- int pmcr;
+ uint64_t pmcr;
uint64_t midr;
pmcr = arm64_pmcr_read();

File Metadata

Mime Type
text/plain
Expires
Thu, May 28, 6:04 PM (8 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33590249
Default Alt Text
D50427.diff (777 B)

Event Timeline