diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2021-10-28 13:59:54 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2022-02-03 07:52:56 +0000 |
commit | cfd32241978840e8d464a089d59a093ad0301d6f (patch) | |
tree | 8fbe14e3d845f4f838595264d1e27823bef37bee /src/include/cpu/x86 | |
parent | a0696645b0bfaefbbca08135055213a852949e72 (diff) |
cpu/x86/smm: Retype variables
Change-Id: I85750282ab274f52bc176a1ac151ef2f9e0dd15d
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58697
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/include/cpu/x86')
-rw-r--r-- | src/include/cpu/x86/smm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index 08404d0320..848996f845 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -135,7 +135,7 @@ static inline bool smm_points_to_smram(const void *ptr, const size_t len) * handle sparse APIC id space. */ struct smm_loader_params { - void *stack_top; + uintptr_t stack_top; size_t per_cpu_stack_size; size_t num_concurrent_stacks; @@ -149,8 +149,8 @@ struct smm_loader_params { }; /* Both of these return 0 on success, < 0 on failure. */ -int smm_setup_relocation_handler(void * const perm_smram, struct smm_loader_params *params); -int smm_load_module(void *smram, size_t size, struct smm_loader_params *params); +int smm_setup_relocation_handler(const uintptr_t perm_smram, struct smm_loader_params *params); +int smm_load_module(uintptr_t smram_base, size_t smram_size, struct smm_loader_params *params); u32 smm_get_cpu_smbase(unsigned int cpu_num); |