]> git.baikalelectronics.ru Git - kernel.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)
commit9469869891afd6fedd481a7ee00cd985bcbe5cdc
tree618d78b038d0910e10e4855b2cefe490020a1a84
parenta62c027eba717927d182cb3ca0a424ac6415d989
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