76329c6939
ENTRY()/END()/WEAK() 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 and fix wrong usage of END()/ENDPROC() to correctly describe the symbols. [1] https://docs.kernel.org/core-api/asm-annotations.html Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20231024132655.730417-3-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
23 lines
410 B
ArmAsm
23 lines
410 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2017 SiFive
|
|
*/
|
|
|
|
#include <linux/linkage.h>
|
|
#include <asm/unistd.h>
|
|
|
|
.text
|
|
/* int __vdso_flush_icache(void *start, void *end, unsigned long flags); */
|
|
SYM_FUNC_START(__vdso_flush_icache)
|
|
.cfi_startproc
|
|
#ifdef CONFIG_SMP
|
|
li a7, __NR_riscv_flush_icache
|
|
ecall
|
|
#else
|
|
fence.i
|
|
li a0, 0
|
|
#endif
|
|
ret
|
|
.cfi_endproc
|
|
SYM_FUNC_END(__vdso_flush_icache)
|