commit | 275f9dde43df710f46f8280988f4135bbee3b57f | [log] [tgz] |
---|---|---|
author | Ken Liu <ken.liu@arm.com> | Sat Jul 25 22:58:00 2020 +0800 |
committer | Soby Mathew <soby.mathew@arm.com> | Wed Sep 30 18:07:06 2020 +0100 |
tree | 4a8d77c2d4b3a54e8f0be73e86d14e5634ea5dc6 | |
parent | 248690474506f6abdab7497ab9e1aa5bbbad59d1 [diff] |
SPM: Add a panic after NS jumping In general the NS jumping should never return. Add a panic after jump in case a failed jumping would run to random places. Change-Id: I55106d2f9168518b491cc00ddd9bb2b3c771618b Signed-off-by: Ken Liu <ken.liu@arm.com>
diff --git a/secure_fw/spm/runtime/tfm_spm_services.c b/secure_fw/spm/runtime/tfm_spm_services.c index 25c6514..63d88e0 100644 --- a/secure_fw/spm/runtime/tfm_spm_services.c +++ b/secure_fw/spm/runtime/tfm_spm_services.c
@@ -21,6 +21,8 @@ { /* Calls the non-secure Reset_Handler to jump to the non-secure binary */ ns_entry(); + + tfm_core_panic(); } __attribute__((naked))