Взято у интел сам не проверял. #define INITIAL_APIC_ID_BITS 0xFF000000 // EBX[31:24] unique APIC ID // Returns the 8-bit unique Initial APIC ID for the processor this // code is actually running on. The default value returned is 0xFF if // Hyper-Threading Technology is not supported. unsigned char GetAPIC_ID (void) { unsigned int reg_ebx = 0; if (!HTSupported()) return (unsigned char) -1; __asm { mov eax, 1 // call cpuid with eax = 1 cpuid mov reg_ebx, ebx // Has APIC ID info } return (unsigned char) ((reg_ebx & INITIAL_APIC_ID_BITS) >> 24); }