1
#ifndef _ASM_X86_JUMP_LABEL_H
2
#define _ASM_X86_JUMP_LABEL_H
6
#include <linux/types.h>
10
#define JUMP_LABEL_NOP_SIZE 5
12
#define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t"
14
static __always_inline bool arch_static_branch(struct jump_label_key *key)
17
JUMP_LABEL_INITIAL_NOP
18
".pushsection __jump_table, \"aw\" \n\t"
20
_ASM_PTR "1b, %l[l_yes], %c0 \n\t"
22
: : "i" (key) : : l_yes);
28
#endif /* __KERNEL__ */
31
typedef u64 jump_label_t;
33
typedef u32 jump_label_t;