diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-27 01:35:55 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-31 21:15:07 -0400 |
commit | e2985fd9b8de51a24fa290e06c9376a03f9a8924 (patch) | |
tree | 58256da3e94dbef328048eeec0e5b92896adf073 /arch/powerpc | |
parent | c812c7d8f1470ac9c8aa6d7e29b56e5845ee05fc (diff) |
powerpc/jump_label: Annotate jump label assembly
Add a comment to the generated assembler for jump labels. This makes it
easier to identify them in asm listings (generated with $ make foo.s).
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/jump_label.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/jump_label.h b/arch/powerpc/include/asm/jump_label.h index 47e155f15433..9878cac7b47c 100644 --- a/arch/powerpc/include/asm/jump_label.h +++ b/arch/powerpc/include/asm/jump_label.h | |||
@@ -21,7 +21,7 @@ | |||
21 | static __always_inline bool arch_static_branch(struct static_key *key, bool branch) | 21 | static __always_inline bool arch_static_branch(struct static_key *key, bool branch) |
22 | { | 22 | { |
23 | asm_volatile_goto("1:\n\t" | 23 | asm_volatile_goto("1:\n\t" |
24 | "nop\n\t" | 24 | "nop # arch_static_branch\n\t" |
25 | ".pushsection __jump_table, \"aw\"\n\t" | 25 | ".pushsection __jump_table, \"aw\"\n\t" |
26 | JUMP_ENTRY_TYPE "1b, %l[l_yes], %c0\n\t" | 26 | JUMP_ENTRY_TYPE "1b, %l[l_yes], %c0\n\t" |
27 | ".popsection \n\t" | 27 | ".popsection \n\t" |
@@ -35,7 +35,7 @@ l_yes: | |||
35 | static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) | 35 | static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) |
36 | { | 36 | { |
37 | asm_volatile_goto("1:\n\t" | 37 | asm_volatile_goto("1:\n\t" |
38 | "b %l[l_yes]\n\t" | 38 | "b %l[l_yes] # arch_static_branch_jump\n\t" |
39 | ".pushsection __jump_table, \"aw\"\n\t" | 39 | ".pushsection __jump_table, \"aw\"\n\t" |
40 | JUMP_ENTRY_TYPE "1b, %l[l_yes], %c0\n\t" | 40 | JUMP_ENTRY_TYPE "1b, %l[l_yes], %c0\n\t" |
41 | ".popsection \n\t" | 41 | ".popsection \n\t" |