summaryrefslogtreecommitdiff
path: root/services/std_svc/spm/secure_partition_setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'services/std_svc/spm/secure_partition_setup.c')
-rw-r--r--services/std_svc/spm/secure_partition_setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/std_svc/spm/secure_partition_setup.c b/services/std_svc/spm/secure_partition_setup.c
index 6624e2b4..67301608 100644
--- a/services/std_svc/spm/secure_partition_setup.c
+++ b/services/std_svc/spm/secure_partition_setup.c
@@ -270,8 +270,8 @@ void secure_partition_setup(void)
* be populated, just after the boot info.
*/
((secure_partition_boot_info_t *) shared_buf_ptr)->mp_info =
- ((secure_partition_mp_info_t *) shared_buf_ptr) +
- sizeof(secure_partition_boot_info_t);
+ (secure_partition_mp_info_t *) ((uintptr_t)shared_buf_ptr
+ + sizeof(secure_partition_boot_info_t));
/*
* Update the shared buffer pointer to where the MP information for the