Commit 6868d12e authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Palmer Dabbelt

riscv: errata: sifive: Use SYM_*() assembly macros

ENTRY()/END() macros are deprecated and we should make use of the
new SYM_*() macros [1] for better annotation of symbols. Replace the
deprecated ones with the new ones.

[1] https://docs.kernel.org/core-api/asm-annotations.htmlSigned-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Reviewed-By: default avatarClément Léger <cleger@rivosinc.com>
Link: https://lore.kernel.org/r/20240709160536.3690-2-jszhang@kernel.orgSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 8400291e
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
1: 1:
.endm .endm
ENTRY(sifive_cip_453_page_fault_trp) SYM_FUNC_START(sifive_cip_453_page_fault_trp)
ADD_SIGN_EXT a0, t0, t1 ADD_SIGN_EXT a0, t0, t1
#ifdef CONFIG_MMU #ifdef CONFIG_MMU
la t0, do_page_fault la t0, do_page_fault
...@@ -29,10 +29,10 @@ ENTRY(sifive_cip_453_page_fault_trp) ...@@ -29,10 +29,10 @@ ENTRY(sifive_cip_453_page_fault_trp)
la t0, do_trap_unknown la t0, do_trap_unknown
#endif #endif
jr t0 jr t0
END(sifive_cip_453_page_fault_trp) SYM_FUNC_END(sifive_cip_453_page_fault_trp)
ENTRY(sifive_cip_453_insn_fault_trp) SYM_FUNC_START(sifive_cip_453_insn_fault_trp)
ADD_SIGN_EXT a0, t0, t1 ADD_SIGN_EXT a0, t0, t1
la t0, do_trap_insn_fault la t0, do_trap_insn_fault
jr t0 jr t0
END(sifive_cip_453_insn_fault_trp) SYM_FUNC_END(sifive_cip_453_insn_fault_trp)
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