aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2003-09-27 04:28:39 +0000
committerRonald G. Minnich <rminnich@gmail.com>2003-09-27 04:28:39 +0000
commit67a1cb3207faa75240e9c89c6fb6721993dc8c0d (patch)
tree4bbb499aaf598a5e462ac6ef9136e8263d7f2c5d /src/northbridge
parent864a3d347466bda79a71181c5b84a43e820a25c1 (diff)
ok that's it. I think this might work.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1157 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/via/vt8601/raminit.c6
1 files 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.