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

arm64: kexec: Read relocation parameters from struct kimage



Arguments to the kexec relocation code are about to become precious.
The hyp-stub API limits the number of arguments we can pass to the kexec
relocation code, as it must also be able to pass HVC_SOFT_RESTART.

Instead of expanding the two implementations, make the caller smarter.

The three values we use in the relocation code are all read from
the same struct. Pass the physical address of the struct.

Now that we read struct kimage from the relocation code, we must
also ensure it is clean to the PoC.

Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
parent 68596509
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