cpu/x86/smm/smm_module_handler: Add x86_64 support

Fix compilation under x86_64.

Tested on HP Z220:
* Still boots on x86_32.

Change-Id: I2a3ac3e44a77792eabb6843673fc6d2e14fda846
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44676
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Patrick Rudolph 2020-08-21 16:43:54 +02:00 committed by Patrick Rudolph
parent 3813822886
commit 275f150752
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ void *smm_get_save_state(int cpu)
/* This function assumes all save states start at top of default /* This function assumes all save states start at top of default
* SMRAM size space and are staggered down by save state size. */ * SMRAM size space and are staggered down by save state size. */
base = (void *)smm_runtime->smbase; base = (void *)(uintptr_t)smm_runtime->smbase;
base += SMM_DEFAULT_SIZE; base += SMM_DEFAULT_SIZE;
base -= (cpu + 1) * smm_runtime->save_state_size; base -= (cpu + 1) * smm_runtime->save_state_size;