summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpu/x86/smm/smm_module_loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/x86/smm/smm_module_loader.c b/src/cpu/x86/smm/smm_module_loader.c
index 3d7952ff42..e92fa05e13 100644
--- a/src/cpu/x86/smm/smm_module_loader.c
+++ b/src/cpu/x86/smm/smm_module_loader.c
@@ -346,6 +346,10 @@ int smm_load_module(void *smram, size_t size, struct smm_loader_params *params)
if (rmodule_parse(&_binary_smm_start, &smm_mod))
return -1;
+ /* Clear SMM region */
+ if (IS_ENABLED(CONFIG_DEBUG_SMI))
+ memset(smram, 0xcd, size);
+
total_stack_size = params->per_cpu_stack_size *
params->num_concurrent_stacks;