summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/amdk8
diff options
context:
space:
mode:
authorYinghai Lu <yinghailu@gmail.com>2006-01-04 01:02:17 +0000
committerYinghai Lu <yinghailu@gmail.com>2006-01-04 01:02:17 +0000
commit5e4d08ee6510ad0747184d3d7aae7d83d4e95cb6 (patch)
tree65bb43587301f9e1a4af722b0eede4dd9fd0e6a0 /src/northbridge/amd/amdk8
parent2850b5eb206c0b8ae4c04adeab63f9abfa5c1003 (diff)
type error fixed...
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2149 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd/amdk8')
-rw-r--r--src/northbridge/amd/amdk8/northbridge.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c
index 835c83e27b..8e503478fa 100644
--- a/src/northbridge/amd/amdk8/northbridge.c
+++ b/src/northbridge/amd/amdk8/northbridge.c
@@ -167,14 +167,9 @@ static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned lin
}
#if K8_SB_HT_CHAIN_ON_BUS0 > 1
// second chain will be on 0x40, third 0x80, forth 0xc0
- else if (max<0x40) {
- min_bus = 0x40;
- } else if (max<0x80) {
- min_bus = 0x80;
- } else {
- min_bus = 0xc0;
+ else {
+ min_bus = ((max>>6) + 1) * 0x40;
}
- max = min_bus;
#else
//other ...
else {
@@ -809,7 +804,7 @@ static struct hw_mem_hole_info get_hw_mem_hole_info(void)
}
//We need to double check if there is speical set on base reg and limit reg are not continous instead of hole, it will find out it's hole_startk
- if(mem_hole.node_id!=-1) {
+ if(mem_hole.node_id==-1) {
uint32_t limitk_pri = 0;
for(i=0; i<8; i++) {
uint32_t base, limit;