Commit 2aa30d19 authored by Samuel Holland's avatar Samuel Holland Committed by Palmer Dabbelt

riscv: jump_label: Simplify assembly syntax

The idiomatic way to write "jal zero" is "j".
Reviewed-by: default avatarBjörn Töpel <bjorn@rivosinc.com>
Signed-off-by: default avatarSamuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240327160520.791322-3-samuel.holland@sifive.comSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 652b56b1
...@@ -46,7 +46,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke ...@@ -46,7 +46,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke
" .option push \n\t" " .option push \n\t"
" .option norelax \n\t" " .option norelax \n\t"
" .option norvc \n\t" " .option norvc \n\t"
"1: jal zero, %l[label] \n\t" "1: j %l[label] \n\t"
" .option pop \n\t" " .option pop \n\t"
" .pushsection __jump_table, \"aw\" \n\t" " .pushsection __jump_table, \"aw\" \n\t"
" .align " RISCV_LGPTR " \n\t" " .align " RISCV_LGPTR " \n\t"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment