OSDN Git Service

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)
committerWill Deacon <will.deacon@arm.com>
Mon, 11 Dec 2017 13:40:47 +0000 (13:40 +0000)
commitc7b9adaf85f818d747eeff5145eb4095ccd587fb
tree9c4bd42693c9f41f676c149e87b74f764b38b3b5
parent9b0de864b5bc298ea53005ad812f3386f81aee9c
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>
arch/arm64/kernel/entry.S
arch/arm64/kernel/vmlinux.lds.S