Fix x30 reporting for unhandled exceptions
authorJulius Werner <jwerner@chromium.org>
Thu, 27 Jul 2017 21:59:34 +0000 (14:59 -0700)
committerJulius Werner <jwerner@chromium.org>
Mon, 21 Aug 2017 20:50:54 +0000 (13:50 -0700)
commit4d91838b8d01a9e99c44fd0ed72f5d81b4595f17
tree710929f9ed09fc109d0e998f65839c713dc671a2
parent5ae4dab2b86351579d85d5f5a8f85252336381b8
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>
bl31/aarch64/runtime_exceptions.S
bl32/tsp/aarch64/tsp_exceptions.S
common/aarch32/debug.S
common/aarch64/debug.S