summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/mp_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index 7cc7fbcd18..3f80694533 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -675,23 +675,23 @@ struct mp_state {
size_t perm_smsize;
size_t smm_save_state_size;
uintptr_t reloc_start32_offset;
- int do_smm;
+ bool do_smm;
} mp_state;
-static int is_smm_enabled(void)
+static bool is_smm_enabled(void)
{
return CONFIG(HAVE_SMI_HANDLER) && mp_state.do_smm;
}
static void smm_disable(void)
{
- mp_state.do_smm = 0;
+ mp_state.do_smm = false;
}
static void smm_enable(void)
{
if (CONFIG(HAVE_SMI_HANDLER))
- mp_state.do_smm = 1;
+ mp_state.do_smm = true;
}
/*