Make AMD SMM SMP aware
authorRudolf Marek <r.marek@assembler.cz>
Sat, 2 Jul 2011 14:36:17 +0000 (16:36 +0200)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Wed, 13 Jul 2011 00:01:35 +0000 (02:01 +0200)
commitb5b3b3bf8ca3eb5be974b50c05e60d03432173d7
treea46e530113c3d4b1ff0b65a10afebc44e4d5b21e
parenta68555f48d06b4c8d55f7e4ca208805bec3d5512
Make AMD SMM SMP aware

Move the SMM MSR init to a code run per CPU. Introduce global SMM_BASE define,
later all 0xa0000 could be changed to use it. Remove the unnecessary test if
the smm_init routine is called once (it is called by BSP only) and also remove
if lock bit is set becuase this bit is cleared by INIT it seems.
Add the defines for fam10h and famfh to respective files, we do not have any
shared AMD MSR header file.

Tested on M2V-MX SE with dualcore CPU.

Change-Id: I1b2bf157d1cc79c566c9089689a9bfd9310f5683
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Reviewed-on: http://review.coreboot.org/82
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/cpu/amd/model_10xxx/model_10xxx_init.c
src/cpu/amd/model_fxx/model_fxx_init.c
src/cpu/amd/smm/smm_init.c
src/include/cpu/amd/model_10xxx_msr.h
src/include/cpu/amd/model_fxx_msr.h
src/include/cpu/x86/smm.h