]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: entry: Don't assume tramp_vectors is the start of the vectors
authorJames Morse <james.morse@arm.com>
Wed, 24 Nov 2021 13:40:09 +0000 (13:40 +0000)
committerJames Morse <james.morse@arm.com>
Tue, 15 Feb 2022 17:39:49 +0000 (17:39 +0000)
commited50da7764535f1e24432ded289974f2bf2b0c5a
tree618d78b038d0910e10e4855b2cefe490020a1a84
parent6c5bf79b69f911560fbf82214c0971af6e58e682
arm64: entry: Don't assume tramp_vectors is the start of the vectors

The tramp_ventry macro uses tramp_vectors as the address of the vectors
when calculating which ventry in the 'full fat' vectors to branch to.

While there is one set of tramp_vectors, this will be true.
Adding multiple sets of vectors will break this assumption.

Move the generation of the vectors to a macro, and pass the start
of the vectors as an argument to tramp_ventry.

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