Merge branch 'for-2637/i2c-all' of git://git.fluff.org/bjdooks/linux
[deliverable/linux.git] / arch / sparc / include / asm / jump_label.h
1 #ifndef _ASM_SPARC_JUMP_LABEL_H
2 #define _ASM_SPARC_JUMP_LABEL_H
3
4 #ifdef __KERNEL__
5
6 #include <linux/types.h>
7
8 #define JUMP_LABEL_NOP_SIZE 4
9
10 #define JUMP_LABEL(key, label) \
11 do { \
12 asm goto("1:\n\t" \
13 "nop\n\t" \
14 "nop\n\t" \
15 ".pushsection __jump_table, \"a\"\n\t"\
16 ".word 1b, %l[" #label "], %c0\n\t" \
17 ".popsection \n\t" \
18 : : "i" (key) : : label);\
19 } while (0)
20
21 #endif /* __KERNEL__ */
22
23 typedef u32 jump_label_t;
24
25 struct jump_entry {
26 jump_label_t code;
27 jump_label_t target;
28 jump_label_t key;
29 };
30
31 #endif
This page took 0.032089 seconds and 6 git commands to generate.