18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2012 ARM Limited 48c2ecf20Sopenharmony_ci * Copyright (C) 2014 Regents of the University of California 58c2ecf20Sopenharmony_ci * Copyright (C) 2017 SiFive 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _ASM_RISCV_VDSO_H 98c2ecf20Sopenharmony_ci#define _ASM_RISCV_VDSO_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <linux/types.h> 128c2ecf20Sopenharmony_ci#include <generated/vdso-offsets.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#ifndef CONFIG_GENERIC_TIME_VSYSCALL 158c2ecf20Sopenharmony_cistruct vdso_data { 168c2ecf20Sopenharmony_ci}; 178c2ecf20Sopenharmony_ci#endif 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define VDSO_SYMBOL(base, name) \ 208c2ecf20Sopenharmony_ci (void __user *)((unsigned long)(base) + __vdso_##name##_offset) 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciasmlinkage long sys_riscv_flush_icache(uintptr_t, uintptr_t, uintptr_t); 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* _ASM_RISCV_VDSO_H */ 25