SPM: Replace SP init flag by generic state enum
Instead of just knowing if the Secure Partition is being initialized or
not, this generic state enum can be used to tell if the Secure Partition
is busy and to add more states in the future if needed.

Also, the spinlock of the secure_partition_context_t structure now only
protects against concurrent accesses to the state of the secure
partition. Previously, it used to lock down the whole structure, thus
preventing one CPU to access any of its fields while another CPU was
executing the partition.

Change-Id: I51215328e2ca8ea2452f92e4a1cb237415958b22
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
1 parent 07f3f63 commit 46f996d793cc106191915152b5f5a31fc7a92c19
@Antonio Nino Diaz Antonio Nino Diaz authored on 23 May 2018
Showing 2 changed files
View
services/std_svc/spm/spm_main.c
View
services/std_svc/spm/spm_private.h