Permalink
Browse files

lapic_init: Use 'bsp' function parameter consistently

  • Loading branch information...
1 parent dbfb3a5 commit a15a5b3a0cb9ad12fd8920e75fe1ec3036a0111d Sepherosa Ziehau committed Mar 19, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 sys/platform/pc32/apic/mpapic.c
  2. +1 −1 sys/platform/pc64/apic/mpapic.c
@@ -171,7 +171,7 @@ lapic_init(boolean_t bsp)
temp = lapic.lvt_lint0;
temp &= ~(APIC_LVT_MASKED | APIC_LVT_TRIG_MASK |
APIC_LVT_POLARITY_MASK | APIC_LVT_DM_MASK);
- if (mycpu->gd_cpuid == 0)
+ if (bsp)
temp |= APIC_LVT_DM_EXTINT;
else
temp |= APIC_LVT_DM_FIXED | APIC_LVT_MASKED;
@@ -178,7 +178,7 @@ lapic_init(boolean_t bsp)
temp = lapic->lvt_lint0;
temp &= ~(APIC_LVT_MASKED | APIC_LVT_TRIG_MASK |
APIC_LVT_POLARITY_MASK | APIC_LVT_DM_MASK);
- if (mycpu->gd_cpuid == 0)
+ if (bsp)
temp |= APIC_LVT_DM_EXTINT;
else
temp |= APIC_LVT_DM_FIXED | APIC_LVT_MASKED;

0 comments on commit a15a5b3

Please sign in to comment.