diff options
author | James Morse <james.morse@arm.com> | 2021-11-25 17:25:34 +0300 |
---|---|---|
committer | James Morse <james.morse@arm.com> | 2022-02-16 16:16:27 +0300 |
commit | b28a8eebe81c186fdb1a0078263b30576c8e1f42 (patch) | |
tree | 1ed8e379c63bc0b06b082c983d31557b56811fef /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ba2689234be92024e5635d30fe744f4853ad97db (diff) | |
download | linux-b28a8eebe81c186fdb1a0078263b30576c8e1f42.tar.xz |
arm64: entry: Add macro for reading symbol addresses from the trampoline
The trampoline code needs to use the address of symbols in the wider
kernel, e.g. vectors. PC-relative addressing wouldn't work as the
trampoline code doesn't run at the address the linker expected.
tramp_ventry uses a literal pool, unless CONFIG_RANDOMIZE_BASE is
set, in which case it uses the data page as a literal pool because
the data page can be unmapped when running in user-space, which is
required for CPUs vulnerable to meltdown.
Pull this logic out as a macro, instead of adding a third copy
of it.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions