[SeaBIOS] [PATCH 2/2] seabios: fix mptable nmi entry (was: Re: [Qemu-devel] [PATCH] qemu: Fix inject-nmi)

Lai Jiangshan laijs at cn.fujitsu.com
Mon Oct 10 08:06:29 CEST 2011


From: Kenji Kaneshige <kaneshige.kenji at jp.fujitsu.com>

In the current seabios MP table description, NMI is connected only to
BSP's LINT1. But usually NMI is connected to all the CPUs' LINT1 as
indicated in MP specification. This patch changes seabios MP table to
describe NMI is connected to all the CPUs' LINT1.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji at jp.fujitsu.com>
Reviewed-by: Lai Jiangshan <laijs at cn.fujitsu.com>
---
 src/mptable.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: seabios/src/mptable.c
===================================================================
--- seabios.orig/src/mptable.c
+++ seabios/src/mptable.c
@@ -169,7 +169,7 @@ mptable_init(void)
     intsrc->irqflag = 0; /* PO, EL default */
     intsrc->srcbus = isabusid; /* ISA */
     intsrc->srcbusirq = 0;
-    intsrc->dstapic = 0; /* BSP == APIC #0 */
+    intsrc->dstapic = 0xff; /* to all local APICs */
     intsrc->dstirq = 1; /* LINTIN1 */
     intsrc++;
     entrycount += intsrc - intsrcs;



More information about the SeaBIOS mailing list