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
This commit is contained in:
Zheng Bao 2010-10-13 05:16:48 +00:00 committed by Zheng Bao
parent 89122856e0
commit f2573bd237
2 changed files with 2 additions and 2 deletions

View 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 &= ~mask;
reg |= val; reg |= val;
if (reg != reg_old) { if (reg != reg_old) {
*((u32 *) addr) = val; *((u32 *) addr) = reg;
} }
} }

View 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 &= ~mask;
reg |= val; reg |= val;
if (reg != reg_old) { if (reg != reg_old) {
*((u32 *) addr) = val; *((u32 *) addr) = reg;
} }
} }