UPSTREAM: arm64: entry: Add exception trampoline page for exceptions from EL0
authorWill Deacon <will.deacon@arm.com>
Tue, 14 Nov 2017 14:07:40 +0000 (14:07 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 5 Jan 2018 21:46:47 +0000 (22:46 +0100)
commita329b068c97b34ef3045c0c6b0aa5ca9563b68ef
treec913427588c385e54fd8bffd51f27adc368bf36c
parent2053d3c3b488013670965d24166395897c83e5a7
UPSTREAM: arm64: entry: Add exception trampoline page for exceptions from EL0

To allow unmapping of the kernel whilst running at EL0, we need to
point the exception vectors at an entry trampoline that can map/unmap
the kernel on entry/exit respectively.

This patch adds the trampoline page, although it is not yet plugged
into the vector table and is therefore unused.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Tested-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit c7b9adaf85f818d747eeff5145eb4095ccd587fb)

[toddpoynor@google.com: fixup context]
Change-Id: I6c6b5eb93a69f26b97628726eccf91df739d03af
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
arch/arm64/kernel/entry.S
arch/arm64/kernel/vmlinux.lds.S