summaryrefslogtreecommitdiff
path: root/src/southbridge/amd
diff options
context:
space:
mode:
authorZheng Bao <zheng.bao@amd.com>2010-10-13 05:16:48 +0000
committerZheng Bao <Zheng.Bao@amd.com>2010-10-13 05:16:48 +0000
commitf2573bd23727db672b22f3840ce91d08ec3aea5d (patch)
tree7fe4f64763de8a0e9c33a9adb136f24f6284d20d /src/southbridge/amd
parent89122856e06822e08040cc9e87496c9b649a743b (diff)
downloadcoreboot-f2573bd23727db672b22f3840ce91d08ec3aea5d.tar.xz
Fix a stupid bug in rs780 and rs690 code.
Signed-off-by: Zheng Bao <zheng.bao@amd.com> Acked-by: Scott Duplichan <scott@notabs.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5947 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/amd')
-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;
}
}