summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/southbridge/amd/rs690/rs690_cmn.c2
-rw-r--r--src/southbridge/amd/rs780/rs780_cmn.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/amd/rs690/rs690_cmn.c b/src/southbridge/amd/rs690/rs690_cmn.c
index 22d80fcf32..dc34319e94 100644
--- a/src/southbridge/amd/rs690/rs690_cmn.c
+++ b/src/southbridge/amd/rs690/rs690_cmn.c
@@ -72,7 +72,7 @@ void pci_ext_write_config32(device_t nb_dev, device_t dev, u32 reg_pos, u32 mask
reg &= ~mask;
reg |= val;
if (reg != reg_old) {
- *((u32 *) addr) = val;
+ *((u32 *) addr) = reg;
}
}
diff --git a/src/southbridge/amd/rs780/rs780_cmn.c b/src/southbridge/amd/rs780/rs780_cmn.c
index e4eee3324c..83e9440ea6 100644
--- a/src/southbridge/amd/rs780/rs780_cmn.c
+++ b/src/southbridge/amd/rs780/rs780_cmn.c
@@ -70,7 +70,7 @@ void pci_ext_write_config32(device_t nb_dev, device_t dev, u32 reg_pos, u32 mask
reg &= ~mask;
reg |= val;
if (reg != reg_old) {
- *((u32 *) addr) = val;
+ *((u32 *) addr) = reg;
}
}