cedarhouse1@comcast.net has uploaded this change for review.

View Change

cpu/x86/smm: Drop now unused `num_cpus` param

Suggested by Nico Huber in CL 38767

Change-Id: Ib5c646a380bf8d8ca001a5f821f89998b21e9957
Signed-off-by: Eugene D Myers <cedarhouse@comcast.net>
---
M src/cpu/x86/smm/smm_module_loader.c
M src/cpu/x86/smm/smm_stub.S
M src/include/cpu/x86/smm.h
3 files changed, 0 insertions(+), 4 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/40439/1
diff --git a/src/cpu/x86/smm/smm_module_loader.c b/src/cpu/x86/smm/smm_module_loader.c
index c50e97d..2279fe8 100644
--- a/src/cpu/x86/smm/smm_module_loader.c
+++ b/src/cpu/x86/smm/smm_module_loader.c
@@ -262,7 +262,6 @@
stub_params->runtime.smbase = (uintptr_t)smbase;
stub_params->runtime.smm_size = smm_size;
stub_params->runtime.save_state_size = params->per_cpu_save_state_size;
- stub_params->runtime.num_cpus = params->num_concurrent_stacks;

/* Initialize the APIC id to CPU number table to be 1:1 */
for (i = 0; i < params->num_concurrent_stacks; i++)
diff --git a/src/cpu/x86/smm/smm_stub.S b/src/cpu/x86/smm/smm_stub.S
index 7e32036..edb8719 100644
--- a/src/cpu/x86/smm/smm_stub.S
+++ b/src/cpu/x86/smm/smm_stub.S
@@ -35,8 +35,6 @@
.long 0
save_state_size:
.long 0
-num_cpus:
-.long 0
/* allows the STM to bring up SMM in 32-bit mode */
start32_offset:
.long smm_trampoline32 - _start
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h
index afa8cf4..0ed3847 100644
--- a/src/include/cpu/x86/smm.h
+++ b/src/include/cpu/x86/smm.h
@@ -54,7 +54,6 @@
u32 smbase;
u32 smm_size;
u32 save_state_size;
- u32 num_cpus;
/* STM's 32bit entry into SMI handler */
u32 start32_offset;
/* The apic_id_to_cpu provides a mapping from APIC id to CPU number.

To view, visit change 40439. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib5c646a380bf8d8ca001a5f821f89998b21e9957
Gerrit-Change-Number: 40439
Gerrit-PatchSet: 1
Gerrit-Owner: cedarhouse1@comcast.net
Gerrit-MessageType: newchange