diff options
author | Pasha Tatashin <pasha.tatashin@soleen.com> | 2021-09-30 14:31:00 +0000 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-10-01 13:30:59 +0100 |
commit | 788bfdd97434982b6d575062581e8e72eea755af (patch) | |
tree | 16c538a07d47ee67cbc7b4833a521345d7f444cc /arch/arm64/include/asm/virt.h | |
parent | 094a3684b9b67758ccedf0e6068d90f22f2942d9 (diff) | |
download | linux-stable-788bfdd97434982b6d575062581e8e72eea755af.tar.gz linux-stable-788bfdd97434982b6d575062581e8e72eea755af.tar.bz2 linux-stable-788bfdd97434982b6d575062581e8e72eea755af.zip |
arm64: trans_pgd: hibernate: Add trans_pgd_copy_el2_vectors
Users of trans_pgd may also need a copy of vector table because it is
also may be overwritten if a linear map can be overwritten.
Move setup of EL2 vectors from hibernate to trans_pgd, so it can be
later shared with kexec as well.
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210930143113.1502553-3-pasha.tatashin@soleen.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/virt.h')
-rw-r--r-- | arch/arm64/include/asm/virt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/virt.h b/arch/arm64/include/asm/virt.h index a9457e96203c..3c8af033a997 100644 --- a/arch/arm64/include/asm/virt.h +++ b/arch/arm64/include/asm/virt.h @@ -67,6 +67,8 @@ */ extern u32 __boot_cpu_mode[2]; +#define ARM64_VECTOR_TABLE_LEN SZ_2K + void __hyp_set_vectors(phys_addr_t phys_vector_base); void __hyp_reset_vectors(void); |