From f2573bd23727db672b22f3840ce91d08ec3aea5d Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Wed, 13 Oct 2010 05:16:48 +0000 Subject: Fix a stupid bug in rs780 and rs690 code. Signed-off-by: Zheng Bao Acked-by: Scott Duplichan git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5947 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/amd/rs780/rs780_cmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/southbridge/amd/rs780') 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; } } -- cgit v1.2.3