Commit 323b6c63 authored by Andre Przywara's avatar Andre Przywara
Browse files

services: TRNG: Fix -O0 compilation



The code to check for the presence of the TRNG service relies on
toolchain garbage collection, which is not enabled with -O0.

Add #ifdef guards around the call to the TRNG service handler to
cover builds without optimisation as well.

Change-Id: I08ece2005ea1c8fa96afa13904a851dec6b24216
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
parent 925477ec
...@@ -142,10 +142,12 @@ static uintptr_t std_svc_smc_handler(uint32_t smc_fid, ...@@ -142,10 +142,12 @@ static uintptr_t std_svc_smc_handler(uint32_t smc_fid,
} }
#endif #endif
#if TRNG_SUPPORT
if (is_trng_fid(smc_fid)) { if (is_trng_fid(smc_fid)) {
return trng_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, return trng_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle,
flags); flags);
} }
#endif
switch (smc_fid) { switch (smc_fid) {
case ARM_STD_SVC_CALL_COUNT: case ARM_STD_SVC_CALL_COUNT:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment