aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2004-02-23 22:33:10 +0000
committerLi-Ta Lo <ollie@lanl.gov>2004-02-23 22:33:10 +0000
commit3259784926c8282dbccdd9cdae43a3023718c80f (patch)
tree9c1e40b3bde8422652b77e7ed1e8d60b55a9f62a /src/northbridge
parent87144668b1c101f18955bb5c946afd172b85ed50 (diff)
correct the DstNode bit mask for IO/MM registers
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1378 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/amd/amdk8/northbridge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c
index 5e49e4b306..e62aded451 100644
--- a/src/northbridge/amd/amdk8/northbridge.c
+++ b/src/northbridge/amd/amdk8/northbridge.c
@@ -289,7 +289,7 @@ static unsigned amdk8_find_iopair(unsigned nodeid, unsigned link)
}
/* Do I have a match for this node and link? */
if (((base & 3) == 3) &&
- ((limit & 3) == nodeid) &&
+ ((limit & 7) == nodeid) &&
(((limit >> 4) & 3) == link)) {
break;
}
@@ -316,7 +316,7 @@ static unsigned amdk8_find_mempair(unsigned nodeid, unsigned link)
}
/* Do I have a match for this node and link? */
if (((base & 3) == 3) &&
- ((limit & 3) == nodeid) &&
+ ((limit & 7) == nodeid) &&
(((limit >> 4) & 3) == link)) {
break;
}
@@ -414,7 +414,7 @@ static void amdk8_set_resource(device_t dev, struct resource *resource, unsigned
limit &= 0xfe000fc8;
limit |= rlimit & 0x01fff000;
limit |= (link & 3) << 4;
- limit |= (nodeid & 3);
+ limit |= (nodeid & 7);
if (reg == 0xc8){
/* hack to set vga for test */
/* factory: b0: 03 0a 00 00 00 0b 00 00 */
@@ -437,7 +437,7 @@ static void amdk8_set_resource(device_t dev, struct resource *resource, unsigned
limit &= 0x00000048;
limit |= (rlimit & 0xffff0000) >> 8;
limit |= (link & 3) << 4;
- limit |= (nodeid & 3);
+ limit |= (nodeid & 7);
f1_write_config32(reg + 0x4, limit);
f1_write_config32(reg, base);
}