Skip to content

Commit 4cc0d8a

Browse files
clementlegerpalmer-dabbelt
authored andcommitted
riscv: kernel: Use correct SYM_DATA_*() macro for data
Some data were incorrectly annotated with SYM_FUNC_*() instead of SYM_DATA_*() ones. Use the correct ones. Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 76329c6 commit 4cc0d8a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

arch/riscv/kernel/entry.S

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ SYM_FUNC_END(__switch_to)
322322
.section ".rodata"
323323
.align LGREG
324324
/* Exception vector table */
325-
SYM_CODE_START(excp_vect_table)
325+
SYM_DATA_START_LOCAL(excp_vect_table)
326326
RISCV_PTR do_trap_insn_misaligned
327327
ALT_INSN_FAULT(RISCV_PTR do_trap_insn_fault)
328328
RISCV_PTR do_trap_insn_illegal
@@ -340,12 +340,11 @@ SYM_CODE_START(excp_vect_table)
340340
RISCV_PTR do_page_fault /* load page fault */
341341
RISCV_PTR do_trap_unknown
342342
RISCV_PTR do_page_fault /* store page fault */
343-
excp_vect_table_end:
344-
SYM_CODE_END(excp_vect_table)
343+
SYM_DATA_END_LABEL(excp_vect_table, SYM_L_LOCAL, excp_vect_table_end)
345344

346345
#ifndef CONFIG_MMU
347-
SYM_CODE_START(__user_rt_sigreturn)
346+
SYM_DATA_START(__user_rt_sigreturn)
348347
li a7, __NR_rt_sigreturn
349348
ecall
350-
SYM_CODE_END(__user_rt_sigreturn)
349+
SYM_DATA_END(__user_rt_sigreturn)
351350
#endif

0 commit comments

Comments
 (0)