linux/arch
Uros Bizjak 59bec00ace x86/percpu: Introduce %rip-relative addressing to PER_CPU_VAR()
Introduce x86_64 %rip-relative addressing to the PER_CPU_VAR() macro.
Instructions using %rip-relative address operand are one byte shorter
than their absolute address counterparts and are also compatible with
position independent executable (-fpie) builds. The patch reduces
code size of a test kernel build by 150 bytes.

The PER_CPU_VAR() macro is intended to be applied to a symbol and should
not be used with register operands. Introduce the new __percpu macro and
use it in cmpxchg{8,16}b_emu.S instead.

Also add a missing function comment to this_cpu_cmpxchg8b_emu().

No functional changes intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: Brian Gerst <brgerst@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Sean Christopherson <seanjc@google.com>
2023-10-20 12:19:51 +02:00
..
alpha TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
arc Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
arm Char/Misc driver changes for 6.6-rc1 2023-09-01 09:53:54 -07:00
arm64 media updates for v6.6-rc1 2023-09-01 12:21:32 -07:00
csky arch/csky 2nd patches for 6.6 2023-09-01 08:02:45 -07:00
hexagon Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
ia64 Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
loongarch TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
m68k m68knommu: updates and fixes for v6.6 2023-09-04 11:34:33 -07:00
microblaze Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
mips TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
nios2 Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
openrisc Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
parisc Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
powerpc This push fixes a random config build failure on powerpc. 2023-09-01 15:39:25 -07:00
riscv RISC-V Patches for the 6.6 Merge Window, Part 1 2023-09-01 08:09:48 -07:00
s390 Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
sh Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
sparc TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
um This pull request contains the following changes for UML: 2023-09-04 11:32:21 -07:00
x86 x86/percpu: Introduce %rip-relative addressing to PER_CPU_VAR() 2023-10-20 12:19:51 +02:00
xtensa TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
.gitignore
Kconfig Add x86 shadow stack support 2023-08-31 12:20:12 -07:00