diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-11-10 16:11:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 16:11:32 +0000 |
commit | bf2de7e49971159bc46b4215aed09150bea63176 (patch) | |
tree | 3a61c62cd2c9520436c84612c5d34fbbb3633dc5 | |
parent | 9500d5a438806297ac62faa9621f4ad2d604526a (diff) | |
parent | ff7d08052b27fd560dddbe02b88d844ddb799dc6 (diff) |
Merge pull request #1158 from antonio-nino-diaz-arm/an/spm-fix
SPM: Fix pointer to MP info in boot info struct
-rw-r--r-- | services/std_svc/spm/secure_partition_setup.c | 4 |
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 |