]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: entry: Allow the trampoline text to occupy multiple pages
authorJames Morse <james.morse@arm.com>
Fri, 18 Mar 2022 17:48:32 +0000 (17:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Mar 2022 08:10:43 +0000 (09:10 +0100)
commit22fdfcf1c2cea8e6dc383d46cbbe59d476d24a96
tree0e0b9c3e8ebf75ea22c3527383877ccc0e9c72af
parent9e056623dfc538909ed2a914f70a66d68ec71ec3
arm64: entry: Allow the trampoline text to occupy multiple pages

commit a9c406e6462ff14956d690de7bbe5131a5677dc9 upstream.

Adding a second set of vectors to .entry.tramp.text will make it
larger than a single 4K page.

Allow the trampoline text to occupy up to three pages by adding two
more fixmap slots. Previous changes to tramp_valias allowed it to reach
beyond a single page.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/fixmap.h
arch/arm64/include/asm/sections.h
arch/arm64/kernel/entry.S
arch/arm64/kernel/vmlinux.lds.S
arch/arm64/mm/mmu.c