aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMate Toth-Pal <mate.toth-pal@arm.com>2019-10-19 10:11:12 +0200
committerMate Toth-Pal <mate.toth-pal@arm.com>2020-01-10 14:41:08 +0100
commit47ecbf04561876f4ae94705c086519654be07422 (patch)
tree1c317781d68d6bfea97fb3d1da6ee3177290d5c9 /cmake
parent0c7a038f801ef0ba7d2f3cb2c6787e912e4d6eec (diff)
downloadtrusted-firmware-m-47ecbf04561876f4ae94705c086519654be07422.tar.gz
Core: Fix privileged in memory check for NS caller
tfm_memory_check uses the cmse_check_address_range function to check whether the current (S or NS) MPU settings allow the caller to access the memory region provided to the function. In the current call sites the 'privileged' parameter of the function is calculated with the tfm_spm_partition_get_privileged_mode(...) function, which returns unprivileged for NS callers. tfm_core_has_[read|write]_access_to_region is called with the 'privileged' field calculated earlier. So inside tfm_memory_check the privileged flag needs to be modified to reflect the current Thread mode privilege setting in the NS CONTROL register. Change-Id: Ife4a40757db595d27b6005855b5e59a8a5569718 Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions