arch: x86: core: intel64: Exclude apic_id comparison for ACRN
This ASSERT fails because the comparison is made between the physical APIC ID and the virtual CPU's LAPIC ID. If CPU-1 is assigned to ACRN, it considers that CPU as its CPU-0. Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
This commit is contained in:
parent
dc4e259dde
commit
5fa9e76469
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ void arch_cpu_start(int cpu_num, k_thread_stack_t *stack, int sz,
|
||||||
*/
|
*/
|
||||||
FUNC_NORETURN void z_x86_cpu_init(struct x86_cpuboot *cpuboot)
|
FUNC_NORETURN void z_x86_cpu_init(struct x86_cpuboot *cpuboot)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_ACPI)
|
#if defined(CONFIG_ACPI) && !defined(CONFIG_ACRN_COMMON)
|
||||||
__ASSERT(z_x86_cpuid_get_current_physical_apic_id() ==
|
__ASSERT(z_x86_cpuid_get_current_physical_apic_id() ==
|
||||||
x86_cpu_loapics[cpuboot->cpu_id], "APIC ID miss match!");
|
x86_cpu_loapics[cpuboot->cpu_id], "APIC ID miss match!");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue