2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (c) 2010 Cavium Networks, Inc.
8 #ifndef _ASM_MIPS_JUMP_LABEL_H
9 #define _ASM_MIPS_JUMP_LABEL_H
11 #include <linux/types.h>
15 #define JUMP_LABEL_NOP_SIZE 4
18 #define WORD_INSN ".dword"
20 #define WORD_INSN ".word"
23 #define JUMP_LABEL(key, label) \
25 asm goto("1:\tnop\n\t" \
27 ".pushsection __jump_table, \"a\"\n\t" \
28 WORD_INSN " 1b, %l[" #label "], %0\n\t" \
30 : : "i" (key) : : label); \
34 #endif /* __KERNEL__ */
37 typedef u64 jump_label_t
;
39 typedef u32 jump_label_t
;
48 #endif /* _ASM_MIPS_JUMP_LABEL_H */
This page took 0.048555 seconds and 6 git commands to generate.