Merge pull request #1158 from antonio-nino-diaz-arm/an/spm-fix

SPM: Fix pointer to MP info in boot info struct
This commit is contained in:
davidcunado-arm
2017-11-10 16:11:32 +00:00
committed by GitHub

View File

@@ -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