Page MenuHomeFreeBSD

D31332.1777551427.diff
No OneTemporary

Size
775 B
Referenced Files
None
Subscribers
None

D31332.1777551427.diff

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

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)

Event Timeline