aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2023-12-13 15:03:15 +0000
committerIngo Molnar <[email protected]>2024-01-09 08:39:15 +0000
commitde8c6a352131f642b82474abe0cbb5dd26a7e081 (patch)
tree9445efbc545555ee20a61e35fdf73264519f6791 /scripts/generate_rust_target.rs
parentx86/alternatives: Move apply_relocation() out of init section (diff)
downloadkernel-de8c6a352131f642b82474abe0cbb5dd26a7e081.tar.gz
kernel-de8c6a352131f642b82474abe0cbb5dd26a7e081.zip
x86/percpu: Use %RIP-relative address in untagged_addr()
%RIP-relative addresses are nowadays correctly handled in alternative instructions, so remove misleading comment and improve assembly to use %RIP-relative address. Also, explicitly using %gs: prefix will segfault for non-SMP builds. Use macros from percpu.h which will DTRT with segment prefix register as far as SMP/non-SMP builds are concerned. Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/all/20231213150357.5942-1-ubizjak%40gmail.com
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions