Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F158034096
D50427.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
777 B
Referenced Files
None
Subscribers
None
D50427.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D50427: hwpmc/arm64: PMCR_EL0 is a 64-bit register
Attached
Detach File
Event Timeline
Log In to Comment