cpu/x86/smm.h: Remove smm runtime pointer from smm_loader_params

struct smm_loader_params is a struct that is passed around in the
ramstage code to set up either the relocation handler or the permanent
handler. At the moment no parameters in the stub 'smm_runtime' are
referenced so it can be dropped. The purpose is to drop the
smm_runtime struct from the stub as it is already located in the
permanent handler.

Change-Id: I09c1b649b5991f55b5ccf57f22e4a3ad4c9e4f03
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50766
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Arthur Heymans 2021-02-15 16:40:51 +01:00 committed by Patrick Georgi
parent 1dfa46ecfd
commit 6f9b1a9049
3 changed files with 0 additions and 3 deletions

View File

@ -263,7 +263,6 @@ static int smm_module_setup_stub(void *smbase, size_t smm_size,
/* Allow the initiator to manipulate SMM stub parameters. */ /* Allow the initiator to manipulate SMM stub parameters. */
params->stub_params = stub_params; params->stub_params = stub_params;
params->runtime = &stub_params->runtime;
printk(BIOS_DEBUG, "SMM Module: stub loaded at %p. Will call %p\n", printk(BIOS_DEBUG, "SMM Module: stub loaded at %p. Will call %p\n",
smm_stub_loc, params->handler); smm_stub_loc, params->handler);

View File

@ -468,7 +468,6 @@ static int smm_module_setup_stub(void *smbase, size_t smm_size,
/* Allow the initiator to manipulate SMM stub parameters. */ /* Allow the initiator to manipulate SMM stub parameters. */
params->stub_params = stub_params; params->stub_params = stub_params;
params->runtime = &stub_params->runtime;
printk(BIOS_DEBUG, "SMM Module: stub loaded at %p. Will call %p\n", printk(BIOS_DEBUG, "SMM Module: stub loaded at %p. Will call %p\n",
smm_stub_loc, params->handler); smm_stub_loc, params->handler);

View File

@ -151,7 +151,6 @@ struct smm_loader_params {
smm_handler_t handler; smm_handler_t handler;
struct smm_stub_params *stub_params; struct smm_stub_params *stub_params;
struct smm_runtime *runtime;
/* The following are only used by X86_SMM_LOADER_VERSION2 */ /* The following are only used by X86_SMM_LOADER_VERSION2 */
#if CONFIG(X86_SMM_LOADER_VERSION2) #if CONFIG(X86_SMM_LOADER_VERSION2)