From b8170f729966587912be024df58db9bdbee9ea49 Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Fri, 6 Jan 2006 01:55:42 +0000 Subject: add the dest cpu apic id in ioapic setup so we can lift the bsp apic id git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2156 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/nvidia/ck804/ck804_lpc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/southbridge') diff --git a/src/southbridge/nvidia/ck804/ck804_lpc.c b/src/southbridge/nvidia/ck804/ck804_lpc.c index ea37b241d5..e406df34a7 100644 --- a/src/southbridge/nvidia/ck804/ck804_lpc.c +++ b/src/southbridge/nvidia/ck804/ck804_lpc.c @@ -2,6 +2,7 @@ * (C) 2003 Linux Networx, SuSE Linux AG * Copyright 2004 Tyan Computer * by yhlu@tyan.com + * 2006.1 yhlu add dest apicid for IRQ0 */ #include #include @@ -13,6 +14,7 @@ #include #include #include +#include #include "ck804.h" #define CK804_CHIP_REV 2 @@ -76,6 +78,8 @@ static void setup_ioapic(unsigned long ioapic_base) volatile unsigned long *l; struct ioapicreg *a = ioapicregvalues; + ioapicregvalues[0].value_high = lapicid()<<(56-32); + l = (unsigned long *) ioapic_base; for (i = 0; i < sizeof(ioapicregvalues) / sizeof(ioapicregvalues[0]); -- cgit v1.2.3