summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorYinghai Lu <yinghailu@gmail.com>2006-01-06 01:55:42 +0000
committerYinghai Lu <yinghailu@gmail.com>2006-01-06 01:55:42 +0000
commitb8170f729966587912be024df58db9bdbee9ea49 (patch)
tree28b3801f9cb96acf78ec3101c4a109267c7f455b /src/southbridge
parentd6edf7a904fdef16b731979f615638e3d60b5005 (diff)
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
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/nvidia/ck804/ck804_lpc.c4
1 files changed, 4 insertions, 0 deletions
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 <console/console.h>
#include <device/device.h>
@@ -13,6 +14,7 @@
#include <pc80/isa-dma.h>
#include <bitops.h>
#include <arch/io.h>
+#include <cpu/x86/lapic.h>
#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]);