diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-08-01 15:41:14 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-08-01 15:41:14 +0000 |
commit | bc0f7a68df9c07518eb34ef4549a2f704ededcdd (patch) | |
tree | 586e2cc67607b67de202f905fc28c667a05212a3 /src/southbridge/intel/i82801gx/i82801gx_smi.c | |
parent | 2d33dc40965c6f7f3dae585a330c2cd06b816c85 (diff) |
- fix SMM code relocation race
- make SMM relocation debugging Kconfig accessible
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5676 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i82801gx/i82801gx_smi.c')
-rw-r--r-- | src/southbridge/intel/i82801gx/i82801gx_smi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/southbridge/intel/i82801gx/i82801gx_smi.c b/src/southbridge/intel/i82801gx/i82801gx_smi.c index 0d15ca50f5..39d5c4dca2 100644 --- a/src/southbridge/intel/i82801gx/i82801gx_smi.c +++ b/src/southbridge/intel/i82801gx/i82801gx_smi.c @@ -335,11 +335,13 @@ static void smm_install(void) void smm_init(void) { - // FIXME is this a race condition? - smm_relocate(); + /* Put SMM code to 0xa0000 */ smm_install(); - // We're done. Make sure SMIs can happen! + /* Put relocation code to 0x38000 and relocate SMBASE */ + smm_relocate(); + + /* We're done. Make sure SMIs can happen! */ smi_set_eos(); } |