arm-trusted-firmware/plat/arm/board/juno
Jeenu Viswambharan a806dad58c Define and use no_ret macro where no return is expected
There are many instances in ARM Trusted Firmware where control is
transferred to functions from which return isn't expected. Such jumps
are made using 'bl' instruction to provide the callee with the location
from which it was jumped to. Additionally, debuggers infer the caller by
examining where 'lr' register points to. If a 'bl' of the nature
described above falls at the end of an assembly function, 'lr' will be
left pointing to a location outside of the function range. This misleads
the debugger back trace.

This patch defines a 'no_ret' macro to be used when jumping to functions
from which return isn't expected. The macro ensures to use 'bl'
instruction for the jump, and also, for debug builds, places a 'nop'
instruction immediately thereafter (unless instructed otherwise) so as
to leave 'lr' pointing within the function range.

Change-Id: Ib34c69fc09197cfd57bc06e147cc8252910e01b0
Co-authored-by: Douglas Raillard <douglas.raillard@arm.com>
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
2016-12-05 14:55:35 +00:00
..
aarch64 Define and use no_ret macro where no return is expected 2016-12-05 14:55:35 +00:00
include ARM platform changes for new version of image loading 2016-09-21 16:12:48 +01:00
tsp Allow multi cluster topology definitions for ARM platforms 2016-02-19 09:18:52 +00:00
juno_bl1_setup.c FWU: Pass client cookie to FWU_SMC_UPDATE_DONE 2015-12-15 14:33:25 +00:00
juno_def.h Allow multi cluster topology definitions for ARM platforms 2016-02-19 09:18:52 +00:00
juno_err.c Add WFI in platform's unexpected error handlers 2016-08-19 14:04:03 +01:00
juno_pm.c CSS: Implement support for NODE_HW_STATE 2016-09-15 11:18:48 +01:00
juno_security.c Migrate ARM standard platforms to the refactored TZC driver 2016-03-31 21:23:23 +01:00
juno_topology.c Allow multi cluster topology definitions for ARM platforms 2016-02-19 09:18:52 +00:00
platform.mk ARM platforms: Define common image sizes 2016-07-25 12:04:31 +01:00