]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: HYP/non-sec: migrate stack
authorMark Kettenis <kettenis@openbsd.org>
Fri, 15 Jun 2018 21:47:11 +0000 (23:47 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 25 Jul 2018 12:57:43 +0000 (14:57 +0200)
commit907ee2945e78c66aaefabaabada4d092fd8e3d58
tree10c723b1a3ee86e266d1fc5fbba4777d4742fc55
parentf260bd30e8f5651d81665aa68c090b415ef566e7
ARM: HYP/non-sec: migrate stack

The current code that switches into HYP mode doesn't bother to set
up a stack for HYP mode.  This doesn't work for EFI applications
as they expect a usable stack.  Fix this by migrating the stack
pointer from SP_svc to SP_hyp while in Monitor mode.
This restores the stack pointer when we drop into HYP mode.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/arm/cpu/armv7/nonsec_virt.S