Please find appended. This patch gets rid of the %gs magic altogether,
[coreboot.git] / src / northbridge / amd / amdmct / mct / mct_d.c
index 5043b754b7986d8345b16b0334232ceab591e0ec..4233705241ffd66db9a934d9340e8df78b80cb6f 100644 (file)
@@ -1970,7 +1970,7 @@ static void StitchMemory_D(struct MCTStatStruc *pMCTstat,
                                reg  = 0x40 + (q << 2) + reg_off;  /* Base[q] reg.*/
                                val = Get_NB32(dev, reg);
                                if (!(val & 3)) {       /* (CSEnable|Spare==1)bank is enabled already? */
-                                       reg = 0x60 + (q << 1) + reg_off; /*Mask[q] reg.*/
+                                       reg = 0x60 + ((q << 1) & 0xc) + reg_off; /*Mask[q] reg.*/
                                        val = Get_NB32(dev, reg);
                                        val >>= 19;
                                        val++;