Platform: RSS: Fix multi-core mem check

The new multi-core mem check did not work on RSS as the
tfm_get_mem_region_security_attr() function results in "secure"
attribute, since the vectors have either been copied into Secure memory
from MHU, or other-core memory is being accessed via the ATU window in
Secure region. This patch works around the issue by setting the
attribute to non-secure.

Additionally, in the 'non-secure' memory check, use the
tfm_hal_memory_check() function to check the access against the current
MPU configuration using the cmse_check_address_range intrinsic, as this
is preferable to manually comparing to defined regions.

Signed-off-by: Jamie Fox <jamie.fox@arm.com>
Change-Id: If73515762fcad27eb029925b6b4756eb35a64086
1 file changed