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
This commit is contained in:
parent
d6edf7a904
commit
b8170f7299
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue