diff options
| author | Uros Bizjak <[email protected]> | 2023-11-05 21:34:37 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2023-11-30 19:06:17 +0000 |
| commit | 2adeed985a42ff3334e6898c8c0827e7626c1336 (patch) | |
| tree | 666b5cdb2790388a3aac880a4022a78172612c4d /scripts/generate_rust_target.rs | |
| parent | x86/callthunks: Handle %rip-relative relocations in call thunk template (diff) | |
| download | kernel-2adeed985a42ff3334e6898c8c0827e7626c1336.tar.gz kernel-2adeed985a42ff3334e6898c8c0827e7626c1336.zip | |
x86/callthunks: Fix and unify call thunks assembly snippets
Currently thunk debug macros explicitly define %gs: segment register
prefix for their percpu variables. This is not compatible with
!CONFIG_SMP, which requires non-prefixed percpu variables.
Fix call thunks debug macros to use PER_CPU_VAR macro from percpu.h
to conditionally use %gs: segment register prefix, depending on
CONFIG_SMP.
Finally, unify ASM_ prefixed assembly macros with their non-prefixed
variants. With support of %rip-relative relocations in place, call
thunk templates allow %rip-relative addressing, so unified assembly
snippet can be used everywhere.
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
