don't generate C source code file but use objcopy to include the SMM blob.
[coreboot.git] / src / southbridge / intel / i82801gx / i82801gx_smi.c
index 3ba21b0dd116f1a1267c5ce190e3487a39d0432f..0d15ca50f5ca222b9decfee1d021773c02718e75 100644 (file)
@@ -30,8 +30,8 @@
 #include <string.h>
 #include "i82801gx.h"
 
-extern unsigned char smm[];
-extern unsigned int smm_len;
+extern unsigned char _binary_smm_start;
+extern unsigned char _binary_smm_size;
 
 /* I945 */
 #define SMRAM          0x9d
@@ -325,7 +325,7 @@ static void smm_install(void)
                                D_OPEN | G_SMRAME | C_BASE_SEG);
 
        /* copy the real SMM handler */
-       memcpy((void *)0xa0000, smm, smm_len);
+       memcpy((void *)0xa0000, &_binary_smm_start, (size_t)&_binary_smm_size);
        wbinvd();
 
        /* close the SMM memory window and enable normal SMM */