17786032eSVasily Gorbik /* SPDX-License-Identifier: GPL-2.0-or-later */ 27786032eSVasily Gorbik #ifndef _X86_ARCH_SPECIAL_H 37786032eSVasily Gorbik #define _X86_ARCH_SPECIAL_H 47786032eSVasily Gorbik 57786032eSVasily Gorbik #define EX_ENTRY_SIZE 12 67786032eSVasily Gorbik #define EX_ORIG_OFFSET 0 77786032eSVasily Gorbik #define EX_NEW_OFFSET 4 87786032eSVasily Gorbik 97786032eSVasily Gorbik #define JUMP_ENTRY_SIZE 16 107786032eSVasily Gorbik #define JUMP_ORIG_OFFSET 0 117786032eSVasily Gorbik #define JUMP_NEW_OFFSET 4 12cbf82a3dSPeter Zijlstra #define JUMP_KEY_OFFSET 8 137786032eSVasily Gorbik 14*5d1dd961SBorislav Petkov (AMD) #define ALT_ENTRY_SIZE 14 157786032eSVasily Gorbik #define ALT_ORIG_OFFSET 0 167786032eSVasily Gorbik #define ALT_NEW_OFFSET 4 177786032eSVasily Gorbik #define ALT_FEATURE_OFFSET 8 18*5d1dd961SBorislav Petkov (AMD) #define ALT_ORIG_LEN_OFFSET 12 19*5d1dd961SBorislav Petkov (AMD) #define ALT_NEW_LEN_OFFSET 13 207786032eSVasily Gorbik 217786032eSVasily Gorbik #endif /* _X86_ARCH_SPECIAL_H */ 22