From 67a1cb3207faa75240e9c89c6fb6721993dc8c0d Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Sat, 27 Sep 2003 04:28:39 +0000 Subject: [PATCH] ok that's it. I think this might work. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1157 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/via/vt8601/raminit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/northbridge/via/vt8601/raminit.c b/src/northbridge/via/vt8601/raminit.c index b41f4a9418..7eba1cd51d 100644 --- a/src/northbridge/via/vt8601/raminit.c +++ b/src/northbridge/via/vt8601/raminit.c @@ -544,7 +544,9 @@ static void sdram_set_registers(const struct mem_controller *ctrl) { print_err("no memory in this bank\r\n"); /* No memory in this bank. Tell it to the bridge. */ pci_write_config8(north,ramregs[c], 0); - } else { + } + /* found something */ + { uint8_t best = 0; /* Detect MA mapping type of the bank. */ @@ -582,7 +584,7 @@ static void sdram_set_registers(const struct mem_controller *ctrl) { print_err_hex32(eax); print_err(" "); print_err_hex32(esi); print_err("\r\n"); - if (eax < esi) { /* ??*/ + if (eax > esi) { /* ??*/ // This is the current best MA mapping. // Save the address and its MA mapping value.