summaryrefslogtreecommitdiff
path: root/src/arch/i386
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386')
-rw-r--r--src/arch/i386/lib/cpu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/i386/lib/cpu.c b/src/arch/i386/lib/cpu.c
index 8ace3fbf53..19020fee55 100644
--- a/src/arch/i386/lib/cpu.c
+++ b/src/arch/i386/lib/cpu.c
@@ -68,6 +68,11 @@ static void interrupts_on()
low |= APIC_DEFAULT_BASE;
wrmsr(APIC_BASE_MSR, low, high);
+ /*
+ * Set Task Priority to 'accept all'.
+ */
+ apic_write_around(APIC_TASKPRI,
+ apic_read_around(APIC_TASKPRI) & ~APIC_TPRI_MASK);
/* Put the local apic in virtual wire mode */
apic_write_around(APIC_SPIV,
@@ -91,10 +96,9 @@ static void interrupts_on()
| (APIC_LVT_REMOTE_IRR |APIC_SEND_PENDING |
APIC_DELIVERY_MODE_NMI)
);
-#if 1
+
printk_debug(" apic_id: %d ",
apic_read(APIC_ID));
-#endif
#else /* APIC */
#ifdef i686