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

kexec: arm64/ia64: Increase the scope of kexec_flush_icache_page()



ia64 does icache maintenance for each crash kernel page that will
be used in-place. It has a hook in kimage_load_crash_segment() to
do this.
arm64 similarly needs to do 'PoC' maintenance for these pages, but
does this when protecting the crashkernel region by unmapping it.

As the distinction between crashkernel and regular kexec is about
to be blurred, arm64 needs to do this maintenance for in-place
pages.

Re-use the kexec_flush_icache_page() hook, renaming it
arch_kexec_flush_page() to cover any cache maintenance the arch
code needs. Switch this to a weak symbol instead of a pre-processor
macro so the header include order can't silently break this.

Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
---
I've only build-tested the ia64 changes.
parent 6ee1d745
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