arm-trusted-firmware/services/spd/tspd
Antonio Nino Diaz 7a317a70d4 tspd:FWU:Fix usage of SMC_RET0
SMC_RET0 should only be used when the SMC code works as a function that
returns void. If the code of the SMC uses SMC_RET1 to return a value to
signify success and doesn't return anything in case of an error (or the
other way around) SMC_RET1 should always be used to return clearly
identifiable values.

This patch fixes two cases in which the code used SMC_RET0 instead of
SMC_RET1.

It also introduces the define SMC_OK to use when an SMC must return a
value to tell that it succeeded, the same way as SMC_UNK is used in case
of failure.

Change-Id: Ie4278b51559e4262aced13bbde4e844023270582
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2017-04-20 09:54:59 +01:00
..
tspd.mk Enable use of FIQs and IRQs as TSP interrupts 2015-12-04 12:02:12 +00:00
tspd_common.c Replace some memset call by zeromem 2017-02-06 17:01:39 +00:00
tspd_helpers.S Add support to indicate size and end of assembly functions 2015-04-08 13:02:59 +01:00
tspd_main.c tspd:FWU:Fix usage of SMC_RET0 2017-04-20 09:54:59 +01:00
tspd_pm.c Abort preempted TSP STD SMC after PSCI CPU suspend 2016-12-23 10:46:32 +00:00
tspd_private.h Abort preempted TSP STD SMC after PSCI CPU suspend 2016-12-23 10:46:32 +00:00