]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: entry: Free up another register on kpti's tramp_exit path
authorJames Morse <james.morse@arm.com>
Tue, 23 Nov 2021 18:41:43 +0000 (18:41 +0000)
committerJames Morse <james.morse@arm.com>
Tue, 15 Feb 2022 17:39:05 +0000 (17:39 +0000)
commitc388d8624533dc38ea180fba81a706b70bff0fb0
treee0e0c580eb4393dc618e01ebd1060e02db04d865
parent2a21a07a8cb0f2531890504022355b035ae43a72
arm64: entry: Free up another register on kpti's tramp_exit path

Kpti stashes x30 in far_el1 while it uses x30 for all its work.

Making the vectors a per-cpu data structure will require a second
register.

Allow tramp_exit two registers before it unmaps the kernel, by
leaving x30 on the stack, and stashing x29 in far_el1.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
arch/arm64/kernel/entry.S