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:
parent
3813822886
commit
275f150752
|
@ -99,7 +99,7 @@ void *smm_get_save_state(int cpu)
|
|||
|
||||
/* This function assumes all save states start at top of default
|
||||
* 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 -= (cpu + 1) * smm_runtime->save_state_size;
|
||||
|
||||
|
|
Loading…
Reference in New Issue