tspd:FWU:Fix usage of SMC_RET0
Antonio Nino Diaz authored
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: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
7a317a70
Name Last commit Last update
bl1 tspd:FWU:Fix usage of SMC_RET0
bl2 Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
bl2u Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
bl31 Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
bl32 Add support for GCC stack protection
common Remove dead loops in assert() in C and ASM
docs Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
drivers Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
fdts Fix incorrect copyright notices
include tspd:FWU:Fix usage of SMC_RET0
lib Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
make_helpers Add support for GCC stack protection
plat Merge pull request #899 from vwadekar/tegra186-platform-support-v6
services tspd:FWU:Fix usage of SMC_RET0
tools fiptool: Embed a pointer to an image within the image descriptor
.checkpatch.conf Mandate 'Signed-off-by' line in commit messages
.gitignore gitignore: ignore GNU GLOBAL tag files
Makefile Merge pull request #890 from masahir0y/scp
acknowledgements.md Add Xilinx to acknowledgements file
contributing.md Drop requirement for CLA in contribution.md
dco.txt Drop requirement for CLA in contribution.md
license.md Update year in copyright text to 2014
readme.md readme.md: Add tested Linaro release information for FVPs