Fix x30 reporting for unhandled exceptions
Some error paths that lead to a crash dump will overwrite the value in
the x30 register by calling functions with the no_ret macro, which
resolves to a BL instruction. This is not very useful and not what the
reader would expect, since a crash dump should usually show all
registers in the state they were in when the exception happened. This
patch replaces the offending function calls with a B instruction to
preserve the value in x30.

Change-Id: I2a3636f2943f79bab0cd911f89d070012e697c2a
Signed-off-by: Julius Werner <jwerner@chromium.org>
1 parent 5ae4dab commit 4d91838b8d01a9e99c44fd0ed72f5d81b4595f17
@Julius Werner Julius Werner authored on 27 Jul 2017
Showing 4 changed files
View
bl31/aarch64/runtime_exceptions.S
View
bl32/tsp/aarch64/tsp_exceptions.S
View
common/aarch32/debug.S
View
common/aarch64/debug.S