From ce6ccb4b33b51e8ee8da48429ffb0bf4469afc66 Mon Sep 17 00:00:00 2001 From: Kenji Kaneshige Date: Wed, 22 Aug 2007 19:53:30 +0900 Subject: [PATCH] --- yaml --- r: 64690 b: refs/heads/master c: f740e6c9c55cac6ab0a7d44a464b54467cca4f4f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/ia64/kernel/setup.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 02701ddf144f..df65b213394e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 17764d2437b0c4440e0718205f2c26dbaa72bc27 +refs/heads/master: f740e6c9c55cac6ab0a7d44a464b54467cca4f4f diff --git a/trunk/arch/ia64/kernel/setup.c b/trunk/arch/ia64/kernel/setup.c index 407efea04bf5..1f9b1d818dcd 100644 --- a/trunk/arch/ia64/kernel/setup.c +++ b/trunk/arch/ia64/kernel/setup.c @@ -960,6 +960,11 @@ cpu_init (void) /* clear TPR & XTP to enable all interrupt classes: */ ia64_setreg(_IA64_REG_CR_TPR, 0); + + /* Clear any pending interrupts left by SAL/EFI */ + while (ia64_get_ivr() != IA64_SPURIOUS_INT_VECTOR) + ia64_eoi(); + #ifdef CONFIG_SMP normal_xtp(); #endif