summaryrefslogtreecommitdiffstats
path: root/src/include/cpu
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-10-28 13:59:54 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-02-03 07:52:56 +0000
commitcfd32241978840e8d464a089d59a093ad0301d6f (patch)
tree8fbe14e3d845f4f838595264d1e27823bef37bee /src/include/cpu
parenta0696645b0bfaefbbca08135055213a852949e72 (diff)
downloadcoreboot-cfd32241978840e8d464a089d59a093ad0301d6f.tar.gz
coreboot-cfd32241978840e8d464a089d59a093ad0301d6f.tar.bz2
coreboot-cfd32241978840e8d464a089d59a093ad0301d6f.zip
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')
-rw-r--r--src/include/cpu/x86/smm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h
index 08404d032031..848996f845f9 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);