summaryrefslogtreecommitdiff
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-12-13 18:03:15 +0300
committerIngo Molnar <mingo@kernel.org>2024-01-09 11:39:15 +0300
commitde8c6a352131f642b82474abe0cbb5dd26a7e081 (patch)
tree9445efbc545555ee20a61e35fdf73264519f6791 /scripts/mod/modpost.c
parent86ed430cf5296ca97a66f1f37e30b7dfe47cd36f (diff)
downloadlinux-de8c6a352131f642b82474abe0cbb5dd26a7e081.tar.xz
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 <ubizjak@gmail.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradaed.org> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/all/20231213150357.5942-1-ubizjak%40gmail.com
Diffstat (limited to 'scripts/mod/modpost.c')
0 files changed, 0 insertions, 0 deletions