• Antonio Nino Diaz's avatar
    SPM: Replace SP init flag by generic state enum · 46f996d7
    Antonio Nino Diaz authored
    
    
    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: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
    46f996d7
spm_private.h 1.85 KB