diff options
author | James Morse <james.morse@arm.com> | 2018-01-08 16:38:18 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2018-01-14 19:49:50 +0100 |
commit | 79e9aa59dc29a995921fb01e64cd36b73cf5abe0 (patch) | |
tree | 503e94412b80a2ef435ab418f5d68c1a55fcf53c /arch/arm64/include/asm/uaccess.h | |
parent | arm64: mmu: add the entry trampolines start/end section markers into sections.h (diff) | |
download | linux-79e9aa59dc29a995921fb01e64cd36b73cf5abe0.tar.xz linux-79e9aa59dc29a995921fb01e64cd36b73cf5abe0.zip |
arm64: sdei: Add trampoline code for remapping the kernel
When CONFIG_UNMAP_KERNEL_AT_EL0 is set the SDEI entry point and the rest
of the kernel may be unmapped when we take an event. If this may be the
case, use an entry trampoline that can switch to the kernel page tables.
We can't use the provided PSTATE to determine whether to switch page
tables as we may have interrupted the kernel's entry trampoline, (or a
normal-priority event that interrupted the kernel's entry trampoline).
Instead test for a user ASID in ttbr1_el1.
Save a value in regs->addr_limit to indicate whether we need to restore
the original ASID when returning from this event. This value is only used
by do_page_fault(), which we don't call with the SDEI regs.
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/uaccess.h')
0 files changed, 0 insertions, 0 deletions