1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (C) 2012 ARM Limited 4 * Copyright (C) 2014 Regents of the University of California 5 * Copyright (C) 2017 SiFive 6 */ 7 8 #ifndef _ASM_RISCV_VDSO_H 9 #define _ASM_RISCV_VDSO_H 10 11 #include <linux/types.h> 12 #include <generated/vdso-offsets.h> 13 14 #ifndef CONFIG_GENERIC_TIME_VSYSCALL 15 struct vdso_data { 16 }; 17 #endif 18 19 #define VDSO_SYMBOL(base, name) \ 20 (void __user *)((unsigned long)(base) + __vdso_##name##_offset) 21 22 asmlinkage long sys_riscv_flush_icache(uintptr_t, uintptr_t, uintptr_t); 23 24 #endif /* _ASM_RISCV_VDSO_H */ 25