Skip to content
Commit c308812a authored by James Morse's avatar James Morse
Browse files

arm64: kexec: Copy and install a copy of the hyp-stub



Before we can do the kexec relocation with the MMU enable, we need to
move the relocation code to EL1. The payload may need to be called
at EL2, so we need a way to call code at EL2. This is what the hyp-stub's
HVC_SOFT_RESTART does.

Create a copy of the hyp-stub in a page that won't be overwritten during
relocation, and install it before we start.

Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
parent 2e0e2e6e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment