From: Sepherosa Ziehau Date: Fri, 13 May 2011 09:18:51 +0000 (+0800) Subject: i386/lapic: Don't set task priority register X-Git-Tag: v2.12.0~631 X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/commitdiff_plain/1971051d793df5e0f6c9e58acb6e35a2026fa263 i386/lapic: Don't set task priority register --- diff --git a/sys/platform/pc32/apic/lapic.c b/sys/platform/pc32/apic/lapic.c index ab76ba969b..597c0373f2 100644 --- a/sys/platform/pc32/apic/lapic.c +++ b/sys/platform/pc32/apic/lapic.c @@ -186,23 +186,10 @@ lapic_init(boolean_t bsp) /* * Set the Task Priority Register as needed. At the moment allow * interrupts on all cpus (the APs will remain CLId until they are - * ready to deal). We could disable all but IPIs by setting - * temp |= TPR_IPI for cpu != 0. + * ready to deal). */ temp = lapic->tpr; temp &= ~APIC_TPR_PRIO; /* clear priority field */ -#ifdef SMP /* APIC-IO */ -if (!apic_io_enable) { -#endif - /* - * If we are NOT running the IO APICs, the LAPIC will only be used - * for IPIs. Set the TPR to prevent any unintentional interrupts. - */ - temp |= TPR_IPI; -#ifdef SMP /* APIC-IO */ -} -#endif - lapic->tpr = temp; /*