From c9b092be3ee3f3766b380c8664675f08cd753de2 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 2 Nov 2023 05:53:05 +0100 Subject: [PATCH] Fixed accidentally swapped conditions in mem/spd.c, fixes RAM detection on 686 boards. --- src/mem/spd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem/spd.c b/src/mem/spd.c index b2d0f7f16..a3bcba46d 100644 --- a/src/mem/spd.c +++ b/src/mem/spd.c @@ -388,9 +388,9 @@ spd_write_drbs(uint8_t *regs, uint8_t reg_min, uint8_t reg_max, uint8_t drb_unit /* Determine the DRB register to write. */ if (two_step) - drb = reg_min + row; - else drb = reg_min + (row << 1); + else + drb = reg_min + row; if (apollo && ((drb & 0xf) < 0xa)) drb = apollo + (drb & 0xf);