Author: oxygene Date: Tue Oct 26 17:11:45 2010 New Revision: 5989 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5989
Log: reg is only used inside the #if clause, so declare it there. trivial.
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de Acked-by: Patrick Georgi patrick.georgi@coresystems.de
Modified: trunk/src/cpu/amd/model_10xxx/init_cpus.c
Modified: trunk/src/cpu/amd/model_10xxx/init_cpus.c ============================================================================== --- trunk/src/cpu/amd/model_10xxx/init_cpus.c Tue Oct 26 07:26:01 2010 (r5988) +++ trunk/src/cpu/amd/model_10xxx/init_cpus.c Tue Oct 26 17:11:45 2010 (r5989) @@ -913,9 +913,9 @@ { u8 i; u8 nodes = get_nodes(); - u32 reg;
#if CONFIG_RAMINIT_SYSINFO + u32 reg; /* read Node0 F0_0x64 bit [8:10] to find out SbLink # */ reg = pci_read_config32(NODE_HT(0), 0x64); sysinfo->sblk = (reg >> 8) & 7;