From 3259784926c8282dbccdd9cdae43a3023718c80f Mon Sep 17 00:00:00 2001 From: Li-Ta Lo Date: Mon, 23 Feb 2004 22:33:10 +0000 Subject: [PATCH] correct the DstNode bit mask for IO/MM registers git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1378 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/amd/amdk8/northbridge.c | 8 ++++---- 1 file 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); }