diff options
Diffstat (limited to 'arch/powerpc/include/asm/jump_label.h')
-rw-r--r-- | arch/powerpc/include/asm/jump_label.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/jump_label.h b/arch/powerpc/include/asm/jump_label.h index f016bb699b5f..efbf9a322a23 100644 --- a/arch/powerpc/include/asm/jump_label.h +++ b/arch/powerpc/include/asm/jump_label.h | |||
@@ -10,6 +10,7 @@ | |||
10 | * 2 of the License, or (at your option) any later version. | 10 | * 2 of the License, or (at your option) any later version. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #ifndef __ASSEMBLY__ | ||
13 | #include <linux/types.h> | 14 | #include <linux/types.h> |
14 | 15 | ||
15 | #include <asm/feature-fixups.h> | 16 | #include <asm/feature-fixups.h> |
@@ -42,4 +43,12 @@ struct jump_entry { | |||
42 | jump_label_t key; | 43 | jump_label_t key; |
43 | }; | 44 | }; |
44 | 45 | ||
46 | #else | ||
47 | #define ARCH_STATIC_BRANCH(LABEL, KEY) \ | ||
48 | 1098: nop; \ | ||
49 | .pushsection __jump_table, "aw"; \ | ||
50 | FTR_ENTRY_LONG 1098b, LABEL, KEY; \ | ||
51 | .popsection | ||
52 | #endif | ||
53 | |||
45 | #endif /* _ASM_POWERPC_JUMP_LABEL_H */ | 54 | #endif /* _ASM_POWERPC_JUMP_LABEL_H */ |