Skip to content

Commit 9b2863e

Browse files
Merge patch series "riscv: select ARCH_USE_SYM_ANNOTATIONS"
Jisheng Zhang <[email protected]> says: commit 76329c6 ("riscv: Use SYM_*() assembly macros instead of deprecated ones"), most riscv has been to converted the new style SYM_ assembler annotations. The remaining one is sifive's errata_cip_453.S, so convert to new style SYM_ annotations as well. After that select ARCH_USE_SYM_ANNOTATIONS. * b4-shazam-merge: riscv: select ARCH_USE_SYM_ANNOTATIONS riscv: errata: sifive: Use SYM_*() assembly macros Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
2 parents 1e206fa + 7c9d980 commit 9b2863e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ config RISCV
6868
select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
6969
select ARCH_USE_MEMTEST
7070
select ARCH_USE_QUEUED_RWLOCKS
71+
select ARCH_USE_SYM_ANNOTATIONS
7172
select ARCH_USES_CFI_TRAPS if CFI_CLANG
7273
select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH if MMU
7374
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU

arch/riscv/errata/sifive/errata_cip_453.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
1:
2222
.endm
2323

24-
ENTRY(sifive_cip_453_page_fault_trp)
24+
SYM_FUNC_START(sifive_cip_453_page_fault_trp)
2525
ADD_SIGN_EXT a0, t0, t1
2626
#ifdef CONFIG_MMU
2727
la t0, do_page_fault
2828
#else
2929
la t0, do_trap_unknown
3030
#endif
3131
jr t0
32-
END(sifive_cip_453_page_fault_trp)
32+
SYM_FUNC_END(sifive_cip_453_page_fault_trp)
3333

34-
ENTRY(sifive_cip_453_insn_fault_trp)
34+
SYM_FUNC_START(sifive_cip_453_insn_fault_trp)
3535
ADD_SIGN_EXT a0, t0, t1
3636
la t0, do_trap_insn_fault
3737
jr t0
38-
END(sifive_cip_453_insn_fault_trp)
38+
SYM_FUNC_END(sifive_cip_453_insn_fault_trp)

0 commit comments

Comments
 (0)