commit | 6e2f8f103b3f00f1def295091ba22ac13c601f35 | [log] [tgz] |
---|---|---|
author | Mark Kettenis <kettenis@openbsd.org> | Fri Jun 15 23:47:11 2018 +0200 |
committer | Alexander Graf <agraf@suse.de> | Wed Jul 25 14:57:43 2018 +0200 |
tree | 10c723b1a3ee86e266d1fc5fbba4777d4742fc55 | |
parent | 571a1a409eb8e351ea7d13fc6ee9ba7bd38eedb5 [diff] |
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>