summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/proc-arm1020.S
diff options
context:
space:
mode:
authorWill Deacon2011-06-08 16:53:34 +0200
committerWill Deacon2011-12-06 15:04:15 +0100
commit2c8951ab0c337cb198236df07ad55f9dd4892c26 (patch)
treecfbc338f1d2b9642af2036dffd9fbf76024d2732 /arch/arm/mm/proc-arm1020.S
parentARM: proc-*.S: place cpu_reset functions into .idmap.text section (diff)
downloadkernel-qcow2-linux-2c8951ab0c337cb198236df07ad55f9dd4892c26.tar.gz
kernel-qcow2-linux-2c8951ab0c337cb198236df07ad55f9dd4892c26.tar.xz
kernel-qcow2-linux-2c8951ab0c337cb198236df07ad55f9dd4892c26.zip
ARM: idmap: use idmap_pgd when setting up mm for reboot
For soft-rebooting a system, it is necessary to map the MMU-off code with an identity mapping so that execution can continue safely once the MMU has been switched off. Currently, switch_mm_for_reboot takes out a 1:1 mapping from 0x0 to TASK_SIZE during reboot in the hope that the reset code lives at a physical address corresponding to a userspace virtual address. This patch modifies the code so that we switch to the idmap_pgd tables, which contain a 1:1 mapping of the cpu_reset code. This has the advantage of only remapping the code that we need and also means we don't need to worry about allocating a pgd from an atomic context in the case that the physical address of the cpu_reset code aliases with the virtual space used by the kernel. Acked-by: Dave Martin <dave.martin@linaro.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/mm/proc-arm1020.S')
0 files changed, 0 insertions, 0 deletions