correct the DstNode bit mask for IO/MM registers

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1378 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Li-Ta Lo 2004-02-23 22:33:10 +00:00
parent 87144668b1
commit 3259784926
1 changed files with 4 additions and 4 deletions

View File

@ -289,7 +289,7 @@ static unsigned amdk8_find_iopair(unsigned nodeid, unsigned link)
} }
/* Do I have a match for this node and link? */ /* Do I have a match for this node and link? */
if (((base & 3) == 3) && if (((base & 3) == 3) &&
((limit & 3) == nodeid) && ((limit & 7) == nodeid) &&
(((limit >> 4) & 3) == link)) { (((limit >> 4) & 3) == link)) {
break; break;
} }
@ -316,7 +316,7 @@ static unsigned amdk8_find_mempair(unsigned nodeid, unsigned link)
} }
/* Do I have a match for this node and link? */ /* Do I have a match for this node and link? */
if (((base & 3) == 3) && if (((base & 3) == 3) &&
((limit & 3) == nodeid) && ((limit & 7) == nodeid) &&
(((limit >> 4) & 3) == link)) { (((limit >> 4) & 3) == link)) {
break; break;
} }
@ -414,7 +414,7 @@ static void amdk8_set_resource(device_t dev, struct resource *resource, unsigned
limit &= 0xfe000fc8; limit &= 0xfe000fc8;
limit |= rlimit & 0x01fff000; limit |= rlimit & 0x01fff000;
limit |= (link & 3) << 4; limit |= (link & 3) << 4;
limit |= (nodeid & 3); limit |= (nodeid & 7);
if (reg == 0xc8){ if (reg == 0xc8){
/* hack to set vga for test */ /* hack to set vga for test */
/* factory: b0: 03 0a 00 00 00 0b 00 00 */ /* 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 &= 0x00000048;
limit |= (rlimit & 0xffff0000) >> 8; limit |= (rlimit & 0xffff0000) >> 8;
limit |= (link & 3) << 4; limit |= (link & 3) << 4;
limit |= (nodeid & 3); limit |= (nodeid & 7);
f1_write_config32(reg + 0x4, limit); f1_write_config32(reg + 0x4, limit);
f1_write_config32(reg, base); f1_write_config32(reg, base);
} }