Skip to contentSkip to conversation

x86/cpuid: Correct parameter types for cpuid_count()

PATCH New Andrew Cooper 1 participant 1 message Jan 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpuid: Correct parameter types for cpuid_count()

About half of the cpuid space has the top bit of op set, and op it always specified with unsigned integers. There are no problematic uses in tree at the moment.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
---
 xen/include/asm-x86/processor.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/asm-x86/processor.h +2 -2
index f98eaf5..20eade6 100644
@@ -234,8 +234,8 @@ unsigned int apicid_to_socket(unsigned int);
 
 /* Some CPUID calls want 'count' to be placed in ecx */
 static inline void cpuid_count(
-    int op,
-    int count,
+    unsigned int op,
+    unsigned int count,
     unsigned int *eax,
     unsigned int *ebx,
     unsigned int *ecx,
Signature · 1 line
1.7.10.4