Skip to content
Commit 290130a1 authored by Will Deacon's avatar Will Deacon
Browse files

ARM: reset: implement soft_restart for jumping to a physical address



Tools such as kexec and CPU hotplug require a way to reset the processor
and branch to some code in physical space. This requires various bits of
jiggery pokery with the caches and MMU which, when it goes wrong, tends
to lock up the system.

This patch fleshes out the soft_restart implementation so that it
branches to the reset code using the identity mapping. This requires us
to change to a temporary stack, held within the kernel image as a static
array, to avoid conflicting with the new view of memory.

Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 2d81f1fe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment