Fix a stupid bug in rs780 and rs690 code.
authorZheng Bao <zheng.bao@amd.com>
Wed, 13 Oct 2010 05:16:48 +0000 (05:16 +0000)
committerZheng Bao <Zheng.Bao@amd.com>
Wed, 13 Oct 2010 05:16:48 +0000 (05:16 +0000)
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

src/southbridge/amd/rs690/rs690_cmn.c
src/southbridge/amd/rs780/rs780_cmn.c

index 22d80fcf32696dd44c09b2610aee175dc129df13..dc34319e94c57510ab199bb13168af59fb88e5c7 100644 (file)
@@ -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;
        }
 }
 
index e4eee3324ca04cc262de68307aad43314c55e206..83e9440ea6763dfa0411a79cffb8aea335965226 100644 (file)
@@ -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;
        }
 }