diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-10 15:51:59 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-13 13:59:34 +0000 |
commit | c4fdb7b923f82e31a687fc01f7176ad05ab51689 (patch) | |
tree | f7ee32bd81fe70378fae542570d4f674b1e31f71 /src/include/cpu/x86/smi_deprecated.h | |
parent | e31ec299decd5a07e14fbd680eb88d34561c646d (diff) | |
download | coreboot-c4fdb7b923f82e31a687fc01f7176ad05ab51689.tar.xz |
cpu/x86: Move some SMM function declarations
Change-Id: I9a4e57f8fd032f2824eab0e5b59d635710e3e24b
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34822
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/include/cpu/x86/smi_deprecated.h')
-rw-r--r-- | src/include/cpu/x86/smi_deprecated.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/cpu/x86/smi_deprecated.h b/src/include/cpu/x86/smi_deprecated.h index 3eed0fdda5..b5d69dd266 100644 --- a/src/include/cpu/x86/smi_deprecated.h +++ b/src/include/cpu/x86/smi_deprecated.h @@ -43,4 +43,16 @@ void northbridge_smi_handler(unsigned int node, smm_state_save_area_t *state_sav void southbridge_smi_handler(unsigned int node, smm_state_save_area_t *state_save); #endif +#if CONFIG(PARALLEL_MP) || !CONFIG(HAVE_SMI_HANDLER) +/* Empty stubs for platforms without SMI handlers. */ +static inline void smm_init(void) { } +static inline void smm_init_completion(void) { } +#else +void smm_init(void); +void smm_init_completion(void); +#endif + +/* Entry from smmhandler.S. */ +void smi_handler(u32 smm_revision); + #endif |