diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2005-01-19 23:19:26 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2005-01-19 23:19:26 +0000 |
commit | bec039cb93b72b068370662933d961b1cd4aeaea (patch) | |
tree | fe17932d8215153fe84ea142072a2b956e2a5d0a /src/northbridge | |
parent | af021575308fffc104a7add2ba8183cef079876c (diff) | |
download | coreboot-bec039cb93b72b068370662933d961b1cd4aeaea.tar.xz |
minor reformat
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1892 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/amd/amdk8/northbridge.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c index fe1fcaa890..4136f9f27c 100644 --- a/src/northbridge/amd/amdk8/northbridge.c +++ b/src/northbridge/amd/amdk8/northbridge.c @@ -672,7 +672,6 @@ static void pci_domain_set_resources(device_t dev) sizek = limitk - ((8*64)+(16*16)); } - /* See if I need to split the region to accomodate pci memory space */ if ((basek < mmio_basek) && (limitk > mmio_basek)) { @@ -728,9 +727,10 @@ static unsigned int cpu_bus_scan(device_t dev, unsigned int max) int apic_id_offset = bsp_apic_id; dev_mc = dev_find_slot(0, PCI_DEVFN(0x18, 0)); - if(pci_read_config32(dev_mc, 0x68) & ( HTTC_APIC_EXT_ID | HTTC_APIC_EXT_BRD_CST)) { + if (pci_read_config32(dev_mc, 0x68) & ( HTTC_APIC_EXT_ID | HTTC_APIC_EXT_BRD_CST)) { enable_apic_ext_id = 1; - if(apic_id_offset==0) { //bsp apic id is not changed + if (apic_id_offset==0) { + //bsp apic id is not changed apic_id_offset = APIC_ID_OFFSET; } } @@ -769,7 +769,8 @@ static unsigned int cpu_bus_scan(device_t dev, unsigned int max) /* Report what I have done */ if (cpu) { if(enable_apic_ext_id) { - if(cpu->path.u.apic.apic_id<apic_id_offset) { //all add offset except bsp cores + if(cpu->path.u.apic.apic_id<apic_id_offset) { + //all add offset except bsp cores if( (cpu->path.u.apic.apic_id > 0) || (bsp_apic_id!=0) ) cpu->path.u.apic.apic_id += apic_id_offset; } |