arm64: entry: Explicitly pass exception level to kernel_ventry macro
authorWill Deacon <will.deacon@arm.com>
Tue, 14 Nov 2017 14:20:21 +0000 (14:20 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:07 +0000 (18:46 +0800)
commit1064aa16beec24f032acd3889dd5758a683b1d35
tree5783ca6fb8cddca0f34a130beda51315309f8faa
parentd68ddc22ec1ed427d09ac2b54742367ed990c8e6
arm64: entry: Explicitly pass exception level to kernel_ventry macro

commit 5b1f7fe41909 upstream.

We will need to treat exceptions from EL0 differently in kernel_ventry,
so rework the macro to take the exception level as an argument and
construct the branch target using that.

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>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Conflicts:
no vmap_stack in arch/arm64/kernel/entry.S
arch/arm64/kernel/entry.S