Hello everyone!
I have compilation problem
If build with gcc
$ make GEN build.h CC romstage.inc src/mainboard/gigabyte/ma785gmt/romstage.c: In function 'cache_as_ram_main': src/mainboard/gigabyte/ma785gmt/romstage.c:220:1: error: bp cannot be used in asm here } ^ make: *** [build/mainboard/gigabyte/ma785gmt/romstage.pre.inc] Error 1
I've tried gcc-4.4, gcc-4.8
If build with clang
$ make GEN build.h CC romstage.inc In file included from src/mainboard/gigabyte/ma785gmt/romstage.c:68: In file included from src/cpu/amd/model_10xxx/init_cpus.c:29: In file included from src/northbridge/amd/amdfam10/raminit_amdmct.c:45: src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:442:45: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] int nbPstate1supported = ! (msr.hi && (1 << (NB_GfxNbPstateDis -32))) ; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:442:45: note: use '&' for a bitwise operation int nbPstate1supported = ! (msr.hi && (1 << (NB_GfxNbPstateDis -32))) ; ^~ & src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:442:45: note: remove constant to silence this warning int nbPstate1supported = ! (msr.hi && (1 << (NB_GfxNbPstateDis -32))) ; ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:459:39: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] int powerDown = dRAMConfigHi && (1 << PowerDownEn ) ; ^ ~~~~~~~~~~~~~~~~~~~ src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:459:39: note: use '&' for a bitwise operation int powerDown = dRAMConfigHi && (1 << PowerDownEn ) ; ^~ & src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:459:39: note: remove constant to silence this warning int powerDown = dRAMConfigHi && (1 << PowerDownEn ) ; ~^~~~~~~~~~~~~~~~~~~~~~ src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:460:33: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] int ddr3 = dRAMConfigHi && (1 << Ddr3Mode ) ; ^ ~~~~~~~~~~~~~~~~ src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:460:33: note: use '&' for a bitwise operation int ddr3 = dRAMConfigHi && (1 << Ddr3Mode ) ; ^~ & src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:460:33: note: remove constant to silence this warning int ddr3 = dRAMConfigHi && (1 << Ddr3Mode ) ; ~^~~~~~~~~~~~~~~~~~~ src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:462:37: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] int pchgPDModeSel = dRAMMRS && (1 << PchgPDModeSel ) ; ^ ~~~~~~~~~~~~~~~~~~~~~ src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:462:37: note: use '&' for a bitwise operation int pchgPDModeSel = dRAMMRS && (1 << PchgPDModeSel ) ; ^~ & src/northbridge/amd/amdfam10/../amdmct/wrappers/mcti_d.c:462:37: note: remove constant to silence this warning int pchgPDModeSel = dRAMMRS && (1 << PchgPDModeSel ) ; ~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mainboard/gigabyte/ma785gmt/romstage.c:68: In file included from src/cpu/amd/model_10xxx/init_cpus.c:29: In file included from src/northbridge/amd/amdfam10/raminit_amdmct.c:46: src/northbridge/amd/amdfam10/../amdmct/mct_ddr3/mct_d.c:3383:24: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] if ((pDCTstat->Speed == 3)) ~~~~~~~~~~~~~~~~^~~~ src/northbridge/amd/amdfam10/../amdmct/mct_ddr3/mct_d.c:3383:24: note: remove extraneous parentheses around the comparison to silence this warning if ((pDCTstat->Speed == 3)) ~ ^ ~ src/northbridge/amd/amdfam10/../amdmct/mct_ddr3/mct_d.c:3383:24: note: use '=' to turn this equality comparison into an assignment if ((pDCTstat->Speed == 3)) ^~ = In file included from src/mainboard/gigabyte/ma785gmt/romstage.c:68: In file included from src/cpu/amd/model_10xxx/init_cpus.c:29: In file included from src/northbridge/amd/amdfam10/raminit_amdmct.c:61: src/northbridge/amd/amdfam10/../amdmct/mct_ddr3/mhwlc_d.c:505:41: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] if ((pDCTData->MaxDimmsInstalled == 4)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ src/northbridge/amd/amdfam10/../amdmct/mct_ddr3/mhwlc_d.c:505:41: note: remove extraneous parentheses around the comparison to silence this warning if ((pDCTData->MaxDimmsInstalled == 4)) ~ ^ ~ src/northbridge/amd/amdfam10/../amdmct/mct_ddr3/mhwlc_d.c:505:41: note: use '=' to turn this equality comparison into an assignment if ((pDCTData->MaxDimmsInstalled == 4)) ^~ = 6 errors generated. make: *** [build/mainboard/gigabyte/ma785gmt/romstage.pre.inc] Error 1
.config in attachement