Author: zbao Date: Wed Oct 13 07:16:48 2010 New Revision: 5947 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5947
Log: 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
Modified: trunk/src/southbridge/amd/rs690/rs690_cmn.c trunk/src/southbridge/amd/rs780/rs780_cmn.c
Modified: trunk/src/southbridge/amd/rs690/rs690_cmn.c ============================================================================== --- trunk/src/southbridge/amd/rs690/rs690_cmn.c Wed Oct 13 04:46:59 2010 (r5946) +++ trunk/src/southbridge/amd/rs690/rs690_cmn.c Wed Oct 13 07:16:48 2010 (r5947) @@ -72,7 +72,7 @@ reg &= ~mask; reg |= val; if (reg != reg_old) { - *((u32 *) addr) = val; + *((u32 *) addr) = reg; } }
Modified: trunk/src/southbridge/amd/rs780/rs780_cmn.c ============================================================================== --- trunk/src/southbridge/amd/rs780/rs780_cmn.c Wed Oct 13 04:46:59 2010 (r5946) +++ trunk/src/southbridge/amd/rs780/rs780_cmn.c Wed Oct 13 07:16:48 2010 (r5947) @@ -70,7 +70,7 @@ reg &= ~mask; reg |= val; if (reg != reg_old) { - *((u32 *) addr) = val; + *((u32 *) addr) = reg; } }