OSDN Git Service

UPSTREAM: arm64: entry: Hook up entry trampoline to exception vectors
authorWill Deacon <will.deacon@arm.com>
Tue, 14 Nov 2017 14:24:29 +0000 (14:24 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 5 Jan 2018 21:46:47 +0000 (22:46 +0100)
commitc27a2258342344ac5048e6e60e48fb969fee1ed4
treebbbf83a895d4b1a75ce0dbf4d6cc8b9013515813
parent8fdbffb119158a8dcf0492e5873bba844744de7e
UPSTREAM: arm64: entry: Hook up entry trampoline to exception vectors

Hook up the entry trampoline to our exception vectors so that all
exceptions from and returns to EL0 go via the trampoline, which swizzles
the vector base register accordingly. Transitioning to and from the
kernel clobbers x30, so we use tpidrro_el0 and far_el1 as scratch
registers for native tasks.

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 4bf3286d29f3a88425d8d8cd53428cbb8f865f04)

Change-Id: I92fe4484fdfcf09e772f5d7ddfa29bfa4eb065f7
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
arch/arm64/kernel/entry.S