diff options
Diffstat (limited to 'src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c')
-rw-r--r-- | src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c b/src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c index 8fb079537c..688f9dd929 100644 --- a/src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c +++ b/src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c @@ -19,6 +19,7 @@ #include "agesawrapper.h" +#include <arch/ioapic.h> #include <console/console.h> #include <cpu/amd/amdfam14.h> #include <device/pci.h> @@ -37,6 +38,7 @@ u8 bus_isa; u8 bus_sb800[6]; u32 apicid_sb800; +u32 apicver_sb800; /** * Here you only need to set value in pci1234 for HT-IO that could be @@ -145,7 +147,14 @@ void get_bus_conf(void) /* I/O APICs: APIC ID Version State Address */ bus_isa = 10; apicid_base = CONFIG_MAX_CPUS; - apicid_sb800 = apicid_base; + + /* + * By the time this function gets called, the IOAPIC registers + * have been written so they can be read to get the correct + * APIC ID and Version + */ + apicid_sb800 = (io_apic_read(IO_APIC_ADDR, 0x00) >> 24); + apicver_sb800 = (io_apic_read(IO_APIC_ADDR, 0x01) & 0xFF); #if CONFIG_AMD_SB_CIMX sb_Late_Post(); |