cpu/x86: Move smm_lock() prototype
The function implementations are in local platform scopes. Change-Id: I7a3025398b15fe6d2c5a13cdb65f3e62a49c0bc6 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34151 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
55b7263ed8
commit
d4e140dae7
|
@ -203,9 +203,10 @@ static inline unsigned int cpuid_edx(unsigned int op)
|
||||||
unsigned int cpu_cpuid_extended_level(void);
|
unsigned int cpu_cpuid_extended_level(void);
|
||||||
int cpu_have_cpuid(void);
|
int cpu_have_cpuid(void);
|
||||||
|
|
||||||
|
/* Only with !PARALLEL_MP. */
|
||||||
void smm_init(void);
|
void smm_init(void);
|
||||||
void smm_init_completion(void);
|
void smm_init_completion(void);
|
||||||
void smm_lock(void);
|
|
||||||
void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
|
void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
|
||||||
|
|
||||||
static inline bool cpu_is_amd(void)
|
static inline bool cpu_is_amd(void)
|
||||||
|
|
|
@ -166,6 +166,7 @@ void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
|
||||||
size_t *smm_save_state_size);
|
size_t *smm_save_state_size);
|
||||||
void smm_initialize(void);
|
void smm_initialize(void);
|
||||||
void smm_relocate(void);
|
void smm_relocate(void);
|
||||||
|
void smm_lock(void);
|
||||||
struct bus;
|
struct bus;
|
||||||
void bsp_init_and_start_aps(struct bus *cpu_bus);
|
void bsp_init_and_start_aps(struct bus *cpu_bus);
|
||||||
/* Determine if HyperThreading is disabled. The variable is not valid until
|
/* Determine if HyperThreading is disabled. The variable is not valid until
|
||||||
|
|
|
@ -31,3 +31,4 @@ void southbridge_smm_clear_state(void);
|
||||||
void smm_relocation_handler(int cpu, uintptr_t curr_smbase,
|
void smm_relocation_handler(int cpu, uintptr_t curr_smbase,
|
||||||
uintptr_t staggered_smbase);
|
uintptr_t staggered_smbase);
|
||||||
void smm_relocate(void);
|
void smm_relocate(void);
|
||||||
|
void smm_lock(void);
|
||||||
|
|
|
@ -59,6 +59,7 @@ void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
|
||||||
size_t *smm_save_state_size);
|
size_t *smm_save_state_size);
|
||||||
void smm_initialize(void);
|
void smm_initialize(void);
|
||||||
void smm_relocate(void);
|
void smm_relocate(void);
|
||||||
|
void smm_lock(void);
|
||||||
|
|
||||||
/* These helpers are for performing SMM relocation. */
|
/* These helpers are for performing SMM relocation. */
|
||||||
void southbridge_trigger_smi(void);
|
void southbridge_trigger_smi(void);
|
||||||
|
|
|
@ -56,5 +56,6 @@ void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
|
||||||
size_t *smm_save_state_size);
|
size_t *smm_save_state_size);
|
||||||
void smm_initialize(void);
|
void smm_initialize(void);
|
||||||
void smm_relocate(void);
|
void smm_relocate(void);
|
||||||
|
void smm_lock(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -60,6 +60,7 @@ void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
|
||||||
size_t *smm_save_state_size);
|
size_t *smm_save_state_size);
|
||||||
void smm_initialize(void);
|
void smm_initialize(void);
|
||||||
void smm_relocate(void);
|
void smm_relocate(void);
|
||||||
|
void smm_lock(void);
|
||||||
|
|
||||||
/* These helpers are for performing SMM relocation. */
|
/* These helpers are for performing SMM relocation. */
|
||||||
void southbridge_trigger_smi(void);
|
void southbridge_trigger_smi(void);
|
||||||
|
|
|
@ -55,5 +55,6 @@ void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
|
||||||
size_t *smm_save_state_size);
|
size_t *smm_save_state_size);
|
||||||
void smm_initialize(void);
|
void smm_initialize(void);
|
||||||
void smm_relocate(void);
|
void smm_relocate(void);
|
||||||
|
void smm_lock(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -54,5 +54,6 @@ void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
|
||||||
size_t *smm_save_state_size);
|
size_t *smm_save_state_size);
|
||||||
void smm_initialize(void);
|
void smm_initialize(void);
|
||||||
void smm_relocate(void);
|
void smm_relocate(void);
|
||||||
|
void smm_lock(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue