Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145261040
D31332.1777551427.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
775 B
Referenced Files
None
Subscribers
None
D31332.1777551427.diff
View Options
Index: sys/dev/hwpmc/hwpmc_powerpc.c
===================================================================
--- sys/dev/hwpmc/hwpmc_powerpc.c
+++ sys/dev/hwpmc/hwpmc_powerpc.c
@@ -604,7 +604,7 @@
}
/* Set the value for kern.hwpmc.cpuid */
- snprintf(pmc_cpuid, sizeof(pmc_cpuid), "%08jx", (uintmax_t)mfpvr());
+ snprintf(pmc_cpuid, sizeof(pmc_cpuid), "%08x", mfpvr());
return (pmc_mdep);
}
Index: sys/powerpc/include/cpufunc.h
===================================================================
--- sys/powerpc/include/cpufunc.h
+++ sys/powerpc/include/cpufunc.h
@@ -125,10 +125,10 @@
return (value);
}
-static __inline register_t
+static __inline uint32_t
mfpvr(void)
{
- register_t value;
+ uint32_t value;
__asm __volatile ("mfpvr %0" : "=r"(value));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 12:17 PM (2 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28507682
Default Alt Text
D31332.1777551427.diff (775 B)
Attached To
Mode
D31332: powerpc: change mfpvr return type to uint32_t
Attached
Detach File
Event Timeline
Log In to Comment