don't generate C source code file but use objcopy to include the SMM blob.
[coreboot.git] / src / southbridge / intel / i82801dx / i82801dx_smi.c
index a1277b03a483065b66047c6d5cf7414c16a97694..e63fb501f226d8af41a1b5227167b189a58c4845 100644 (file)
@@ -30,8 +30,8 @@
 #include <string.h>
 #include "i82801dx.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          0x90
@@ -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 */