Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156842588
D31332.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
724 B
Referenced Files
None
Subscribers
None
D31332.diff
View Options
diff --git a/sys/dev/hwpmc/hwpmc_powerpc.c b/sys/dev/hwpmc/hwpmc_powerpc.c
--- a/sys/dev/hwpmc/hwpmc_powerpc.c
+++ b/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);
}
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
--- a/sys/powerpc/include/cpufunc.h
+++ b/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
Sun, May 17, 8:34 PM (13 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33208153
Default Alt Text
D31332.diff (724 B)
Attached To
Mode
D31332: powerpc: change mfpvr return type to uint32_t
Attached
Detach File
Event Timeline
Log In to Comment