Skip to content

Commit 2aa30d1

Browse files
SiFiveHollandpalmer-dabbelt
authored andcommitted
riscv: jump_label: Simplify assembly syntax
The idiomatic way to write "jal zero" is "j". Reviewed-by: Björn Töpel <[email protected]> Signed-off-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 652b56b commit 2aa30d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/include/asm/jump_label.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke
4646
" .option push \n\t"
4747
" .option norelax \n\t"
4848
" .option norvc \n\t"
49-
"1: jal zero, %l[label] \n\t"
49+
"1: j %l[label] \n\t"
5050
" .option pop \n\t"
5151
" .pushsection __jump_table, \"aw\" \n\t"
5252
" .align " RISCV_LGPTR " \n\t"

0 commit comments

Comments
 (0)