29 void CPU::native_cpuid(
unsigned int *eax,
unsigned int *ebx,
30 unsigned int *ecx,
unsigned int *edx)
38 :
"0" (*eax),
"2" (*ecx));
42 size_t pages = sysconf(_SC_PHYS_PAGES);
43 size_t page_size = sysconf(_SC_PAGE_SIZE);
44 size_t total = pages * page_size;
59 native_cpuid(&eax, &ebx, &ecx, &edx);
61 ss << (eax & 0xF); ss <<
" ";
62 ss << ((eax >> 4) & 0
xF); ss <<
" ";
63 ss << ((eax >> 8) & 0
xF); ss <<
" ";
64 ss << ((eax >> 12) & 0x3); ss <<
" ";
65 ss << ((eax >> 16) & 0
xF); ss <<
" ";
66 ss << ((eax >> 20) & 0xFF); ss <<
" ";