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>
This commit is contained in:
committed by
Stefan Reinauer
parent
a68555f48d
commit
b5b3b3bf8c
@@ -24,6 +24,9 @@
|
||||
#ifndef CPU_X86_SMM_H
|
||||
#define CPU_X86_SMM_H
|
||||
|
||||
/* used only by C programs so far */
|
||||
#define SMM_BASE 0xa0000
|
||||
|
||||
#include <types.h>
|
||||
typedef struct {
|
||||
u16 es_selector;
|
||||
|
Reference in New Issue
Block a user