summaryrefslogtreecommitdiff
path: root/src/soc/intel/sch
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/sch')
-rw-r--r--src/soc/intel/sch/smi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/soc/intel/sch/smi.c b/src/soc/intel/sch/smi.c
index 24628e52e6..f79e963ba1 100644
--- a/src/soc/intel/sch/smi.c
+++ b/src/soc/intel/sch/smi.c
@@ -24,9 +24,6 @@
#include "chip.h"
#include "sch.h"
-extern unsigned char _binary_smm_start;
-extern unsigned char _binary_smm_size;
-
/* I945 */
#define SMRAM 0x9d
#define D_OPEN (1 << 6)
@@ -299,7 +296,8 @@ static void smm_install(void)
D_OPEN | G_SMRAME | C_BASE_SEG);
/* copy the real SMM handler */
- memcpy((void *)0xa0000, &_binary_smm_start, (size_t)&_binary_smm_size);
+ memcpy((void *)0xa0000, _binary_smm_start,
+ _binary_smm_end - _binary_smm_start);
wbinvd();
/* close the SMM memory window and enable normal SMM */