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 <bjorn@rivosinc.com> Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Link: https://lore.kernel.org/r/20240327160520.791322-3-samuel.holland@sifive.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 652b56b commit 2aa30d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)