mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 08:28:13 +00:00
a92ede2d58
Ensure the register order is correct; this allows for easy translation between register number and trampoline and vice-versa. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Borislav Petkov <bp@suse.de> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Tested-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/r/20211026120309.978573921@infradead.org
31 lines
345 B
C
31 lines
345 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* These are in machine order; things rely on that.
|
|
*/
|
|
#ifdef CONFIG_64BIT
|
|
GEN(rax)
|
|
GEN(rcx)
|
|
GEN(rdx)
|
|
GEN(rbx)
|
|
GEN(rsp)
|
|
GEN(rbp)
|
|
GEN(rsi)
|
|
GEN(rdi)
|
|
GEN(r8)
|
|
GEN(r9)
|
|
GEN(r10)
|
|
GEN(r11)
|
|
GEN(r12)
|
|
GEN(r13)
|
|
GEN(r14)
|
|
GEN(r15)
|
|
#else
|
|
GEN(eax)
|
|
GEN(ecx)
|
|
GEN(edx)
|
|
GEN(ebx)
|
|
GEN(esp)
|
|
GEN(ebp)
|
|
GEN(esi)
|
|
GEN(edi)
|
|
#endif
|