diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-05-30 13:44:32 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-05-30 13:44:32 +0000 |
commit | b987f7bb3f69eabfb5eb515041bbcabb36d1ccf8 (patch) | |
tree | 1af1b1f844f191691314d1c2ced58cfa5411f658 /src/southbridge/intel/i82801gx | |
parent | 6e554de0988fb1fd3e02aca6b6f2fc10c8fdc7ee (diff) |
don't generate C source code file but use objcopy to include the SMM blob.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5600 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i82801gx')
-rw-r--r-- | src/southbridge/intel/i82801gx/i82801gx_smi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/southbridge/intel/i82801gx/i82801gx_smi.c b/src/southbridge/intel/i82801gx/i82801gx_smi.c index 3ba21b0dd1..0d15ca50f5 100644 --- a/src/southbridge/intel/i82801gx/i82801gx_smi.c +++ b/src/southbridge/intel/i82801gx/i82801gx_smi.c @@ -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 */ |