summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/GEN-for-each-reg.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-04-22 17:03:22 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-04-30 20:14:34 +0200
commitca3f0d80dd57c8828bfb5bc0bc79750ea7a1ba26 (patch)
tree610fe8890a2276e3bfa5a93e93c19eca90b30861 /arch/x86/include/asm/GEN-for-each-reg.h
parent089dd8e53126ebaf506e2dc0bf89d652c36bfc12 (diff)
downloadlinux-ca3f0d80dd57c8828bfb5bc0bc79750ea7a1ba26.tar.bz2
x86: Simplify retpoline declaration
Because of how KSYM works, we need one declaration per line. Seeing how we're going to be doubling the amount of retpoline symbols, simplify the machinery in order to avoid having to copy/paste even more. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lkml.kernel.org/r/20200428191700.091696925@infradead.org
Diffstat (limited to 'arch/x86/include/asm/GEN-for-each-reg.h')
-rw-r--r--arch/x86/include/asm/GEN-for-each-reg.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/x86/include/asm/GEN-for-each-reg.h b/arch/x86/include/asm/GEN-for-each-reg.h
new file mode 100644
index 000000000000..1b07fb102c4e
--- /dev/null
+++ b/arch/x86/include/asm/GEN-for-each-reg.h
@@ -0,0 +1,25 @@
+#ifdef CONFIG_64BIT
+GEN(rax)
+GEN(rbx)
+GEN(rcx)
+GEN(rdx)
+GEN(rsi)
+GEN(rdi)
+GEN(rbp)
+GEN(r8)
+GEN(r9)
+GEN(r10)
+GEN(r11)
+GEN(r12)
+GEN(r13)
+GEN(r14)
+GEN(r15)
+#else
+GEN(eax)
+GEN(ebx)
+GEN(ecx)
+GEN(edx)
+GEN(esi)
+GEN(edi)
+GEN(ebp)
+#endif