Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
12/*
13 * All systems with an MMU have a VDSO, but systems without an MMU don't
14 * support shared libraries and therefor don't have one.
15 */
16#ifdef CONFIG_MMU
17
18#include <linux/types.h>
19/*
20 * All systems with an MMU have a VDSO, but systems without an MMU don't
21 * support shared libraries and therefor don't have one.
22 */
23#ifdef CONFIG_MMU
24
25#define __VVAR_PAGES 1
26
27#ifndef __ASSEMBLY__
28#include <generated/vdso-offsets.h>
29
30#define VDSO_SYMBOL(base, name) \
31 (void __user *)((unsigned long)(base) + __vdso_##name##_offset)
32
33#endif /* CONFIG_MMU */
34
35#endif /* !__ASSEMBLY__ */
36
37#endif /* CONFIG_MMU */
38
39#endif /* _ASM_RISCV_VDSO_H */