diff --git a/services/spd/trusty/generic-arm64-smcall.c b/services/spd/trusty/generic-arm64-smcall.c index 7916fca..38da279 100644 --- a/services/spd/trusty/generic-arm64-smcall.c +++ b/services/spd/trusty/generic-arm64-smcall.c @@ -66,7 +66,7 @@ void *handle, uint64_t flags) { - switch(smc_fid) { + switch (smc_fid) { case SMC_FC_DEBUG_PUTC: trusty_dputc(x1, is_caller_secure(flags)); SMC_RET1(handle, 0); diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c index e62f739..e27df15 100644 --- a/services/spd/trusty/trusty.c +++ b/services/spd/trusty/trusty.c @@ -409,7 +409,7 @@ instr = *(uint32_t *)ep_info->pc; - if (instr >> 24 == 0xea) { + if (instr >> 24 == 0xeaU) { INFO("trusty: Found 32 bit image\n"); aarch32 = true; } else if (instr >> 8 == 0xd53810 || instr >> 16 == 0x9400) {