linux/arch/x86/include/asm/extable_fixup_types.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_EXTABLE_FIXUP_TYPES_H
#define _ASM_X86_EXTABLE_FIXUP_TYPES_H

/*
 * Our IMM is signed, as such it must live at the top end of the word. Also,
 * since C99 hex constants are of ambiguous type, force cast the mask to 'int'
 * so that FIELD_GET() will DTRT and sign extend the value when it extracts it.
 */
#define EX_DATA_TYPE_MASK
#define EX_DATA_REG_MASK
#define EX_DATA_FLAG_MASK
#define EX_DATA_IMM_MASK

#define EX_DATA_REG_SHIFT
#define EX_DATA_FLAG_SHIFT
#define EX_DATA_IMM_SHIFT

#define EX_DATA_REG(reg)
#define EX_DATA_FLAG(flag)
#define EX_DATA_IMM(imm)

/* segment regs */
#define EX_REG_DS
#define EX_REG_ES
#define EX_REG_FS
#define EX_REG_GS

/* flags */
#define EX_FLAG_CLEAR_AX
#define EX_FLAG_CLEAR_DX
#define EX_FLAG_CLEAR_AX_DX

/* types */
#define EX_TYPE_NONE
#define EX_TYPE_DEFAULT
#define EX_TYPE_FAULT
#define EX_TYPE_UACCESS
/* unused, was: #define EX_TYPE_COPY	 4 */
#define EX_TYPE_CLEAR_FS
#define EX_TYPE_FPU_RESTORE
#define EX_TYPE_BPF
#define EX_TYPE_WRMSR
#define EX_TYPE_RDMSR
#define EX_TYPE_WRMSR_SAFE
#define EX_TYPE_RDMSR_SAFE
#define EX_TYPE_WRMSR_IN_MCE
#define EX_TYPE_RDMSR_IN_MCE
#define EX_TYPE_DEFAULT_MCE_SAFE
#define EX_TYPE_FAULT_MCE_SAFE

#define EX_TYPE_POP_REG
#define EX_TYPE_POP_ZERO

#define EX_TYPE_IMM_REG
#define EX_TYPE_EFAULT_REG
#define EX_TYPE_ZERO_REG
#define EX_TYPE_ONE_REG

#define EX_TYPE_FAULT_SGX

#define EX_TYPE_UCOPY_LEN
#define EX_TYPE_UCOPY_LEN1
#define EX_TYPE_UCOPY_LEN4
#define EX_TYPE_UCOPY_LEN8

#define EX_TYPE_ZEROPAD

#define EX_TYPE_ERETU

#endif