From 31d433ffb82cbc1b86308708da9f496b4fce6d70 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Sat, 14 May 2011 23:34:51 +0800 Subject: [PATCH] x86_64: Don't set task priority register --- sys/platform/pc64/apic/lapic.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/sys/platform/pc64/apic/lapic.c b/sys/platform/pc64/apic/lapic.c index 795d8fdd76..0c89c47a9f 100644 --- a/sys/platform/pc64/apic/lapic.c +++ b/sys/platform/pc64/apic/lapic.c @@ -195,22 +195,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; /* -- 2.41.0