Skip to content
Commit 907ee294 authored by Mark Kettenis's avatar Mark Kettenis Committed by Alexander Graf
Browse files

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: default avatarMark Kettenis <kettenis@openbsd.org>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent f260bd30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment