Use 'PCPU_GET(apic_id)' to determine the BSP's APIC ID on a UP machine
when routing interrupts instead of cpu_apic_ids[0] since cpu_apic_ids[] is only populated for multiple-CPU machines. This also matches what the code does when SMP is not enabled. PR: bin/151616 Tested by: "Damian S. Kolodziejczyk" damkol | gmail Submitted by: avg MFC after: 1 week
This commit is contained in:
parent
9398643636
commit
89d84a4055
@ -458,7 +458,7 @@ intr_next_cpu(void)
|
||||
|
||||
/* Leave all interrupts on the BSP during boot. */
|
||||
if (!assign_cpu)
|
||||
return (cpu_apic_ids[0]);
|
||||
return (PCPU_GET(apic_id));
|
||||
|
||||
mtx_lock_spin(&icu_lock);
|
||||
apic_id = cpu_apic_ids[current_cpu];
|
||||
|
@ -424,7 +424,7 @@ intr_next_cpu(void)
|
||||
|
||||
/* Leave all interrupts on the BSP during boot. */
|
||||
if (!assign_cpu)
|
||||
return (cpu_apic_ids[0]);
|
||||
return (PCPU_GET(apic_id));
|
||||
|
||||
mtx_lock_spin(&icu_lock);
|
||||
apic_id = cpu_apic_ids[current_cpu];
|
||||
|
Loading…
x
Reference in New Issue
Block a user