Skip to content

Commit 5fa9e76

Browse files
akanisettikartben
authored andcommitted
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>
1 parent dc4e259 commit 5fa9e76

File tree

1 file changed

+1
-1
lines changed
  • arch/x86/core/intel64

1 file changed

+1
-1
lines changed

arch/x86/core/intel64/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void arch_cpu_start(int cpu_num, k_thread_stack_t *stack, int sz,
9797
*/
9898
FUNC_NORETURN void z_x86_cpu_init(struct x86_cpuboot *cpuboot)
9999
{
100-
#if defined(CONFIG_ACPI)
100+
#if defined(CONFIG_ACPI) && !defined(CONFIG_ACRN_COMMON)
101101
__ASSERT(z_x86_cpuid_get_current_physical_apic_id() ==
102102
x86_cpu_loapics[cpuboot->cpu_id], "APIC ID miss match!");
103103
#endif

0 commit comments

Comments
 (0)