Return local APIC id in CPUID 00000001h function in EBX register

This commit is contained in:
Stanislav Shwartsman 2005-01-29 15:24:57 +00:00
parent 7a35a36390
commit 68714924b0

View File

@ -259,7 +259,11 @@ void BX_CPU_C::CPUID(bxInstruction_c *i)
// [29] TM: Thermal Monitor
// [31:30] Reserved
RAX = get_cpu_version_information();
RBX = 0; // still not implemented
#if BX_SUPPORT_APIC
RBX = (BX_CPU_THIS_PTR local_apic.get_id() << 24);
#else
RBX = 0;
#endif
RCX = get_extended_cpuid_features ();
RDX = get_std_cpuid_features ();
break;