diff options
author | Antonio Niño Díaz <antonio.ninodiaz@arm.com> | 2019-01-25 10:30:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-25 10:30:36 +0000 |
commit | a1d1d24b7869535a3a8ef36c6bbb2addada7738f (patch) | |
tree | 6c47a00d27371033ef38a6b499e321fea7e58677 /services | |
parent | 72106f823ce57b1cf3502ba2e22fb10bb29194b3 (diff) | |
parent | d19c34385495bccf3b7438f997fb1e6d1ff1563e (diff) |
Merge pull request #1781 from dtwlin/m2
spd: trusty: trusty_setup should bail on unknown image
Diffstat (limited to 'services')
-rw-r--r-- | services/spd/trusty/trusty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c index 0305143d..83c14b49 100644 --- a/services/spd/trusty/trusty.c +++ b/services/spd/trusty/trusty.c @@ -420,7 +420,8 @@ static int32_t trusty_setup(void) } else if (instr >> 8 == 0xd53810U || instr >> 16 == 0x9400U) { INFO("trusty: Found 64 bit image\n"); } else { - NOTICE("trusty: Found unknown image, 0x%x\n", instr); + ERROR("trusty: Found unknown image, 0x%x\n", instr); + return -1; } SET_PARAM_HEAD(ep_info, PARAM_EP, VERSION_1, SECURE | EP_ST_ENABLE); |