aarch64: Fix stack pointer maintenance on EA handling path
EA handlers for exceptions taken from lower ELs at the end invokes
el3_exit function. However there was a bug with sp maintenance which
resulted in el3_exit setting runtime stack to context. This in turn
caused memory corruption on consecutive EL3 entries.

Signed-off-by: Jan Dabros <jsd@semihalf.com>
Change-Id: I0424245c27c369c864506f4baa719968890ce659
1 parent 0d35873 commit bb9549babc17631f7c7b944ad3213c5a8d173bdd
@Jan Dabros Jan Dabros authored on 2 Dec 2019
Showing 2 changed files
View
bl31/aarch64/ea_delegate.S
View
lib/el3_runtime/aarch64/context.S