• Will Deacon's avatar
    ARM: reset: implement soft_restart for jumping to a physical address · 290130a1
    Will Deacon authored
    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>
    290130a1
process.c 13 KB