Fix gcc4 build.

Signed-off-by: Steve Dobbelstein <steved@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-02-14 22:36:22 +01:00
1 parent 58d5afee7b
commit 4e44a5e52e
1 file changed
+10 -8
+10 -8
View File
@@ -213,15 +213,17 @@ static always_inline void detect_ht(struct cpuinfo_x86 *c) {}
: "0" (_op), "2" (0))
/* Some CPUID calls want 'count' to be placed in ecx */
static inline void cpuid_count(int op, int count, int *eax, int *ebx, int *ecx,
int *edx)
static inline void cpuid_count(
int op,
int count,
unsigned int *eax,
unsigned int *ebx,
unsigned int *ecx,
unsigned int *edx)
{
__asm__("cpuid"
: "=a" (*eax),
"=b" (*ebx),
"=c" (*ecx),
"=d" (*edx)
: "0" (op), "c" (count));
__asm__("cpuid"
: "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx)
: "0" (op), "c" (count));
}
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.