summaryrefslogtreecommitdiff
path: root/src/include/cpu/x86/smi_deprecated.h
blob: 6213915eeee994179313b1aaf64bbbf7a6c3da98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __X86_SMI_DEPRECATED_H__
#define __X86_SMI_DEPRECATED_H__

#include <stdint.h>

#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(void);

#endif