vgdb: Handle EAGAIN in read_buf
[valgrind.git] / none / tests / x86 / cpuid_c.c
blob333ff1127d3324ed7922e0f4b1ef05f65d79062e
2 #include <stdio.h>
4 // in cpuid_s.s
5 extern void get_cpuid0 ( unsigned int* buf );
6 extern void get_cpuid1 ( unsigned int* buf );
8 unsigned int buf[4];
10 int main ( void )
12 get_cpuid0(&buf[0]);
13 printf("cpuid words (0): 0x%x 0x%x 0x%x 0x%x\n",
14 buf[0], buf[1], buf[2], buf[3] );
16 get_cpuid1(&buf[0]);
17 printf("cpuid words (1): 0x%x 0x%x 0x%x 0x%x\n",
18 buf[0], buf[1], buf[2], buf[3] );
20 return 0;