aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2024-03-27 09:04:41 -0700
committerPalmer Dabbelt <[email protected]>2024-06-26 07:36:28 -0700
commit2aa30d19cfbb3c2172f3c4f50abae447c4937772 (patch)
tree3b9dab9e8e239e51541712ae030b78df64acc15a
parent652b56b18439b7753eb0dcd5a2a4b6cc5b18cf67 (diff)
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]>
-rw-r--r--arch/riscv/include/asm/jump_label.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/jump_label.h b/arch/riscv/include/asm/jump_label.h
index 6290b26f4a14..1c768d02bd0c 100644
--- a/arch/riscv/include/asm/jump_label.h
+++ b/arch/riscv/include/asm/jump_label.h
@@ -46,7 +46,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke
" .option push \n\t"
" .option norelax \n\t"
" .option norvc \n\t"
- "1: jal zero, %l[label] \n\t"
+ "1: j %l[label] \n\t"
" .option pop \n\t"
" .pushsection __jump_table, \"aw\" \n\t"
" .align " RISCV_LGPTR " \n\t"