summaryrefslogtreecommitdiff
path: root/arch/parisc/include/asm/vdso.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/include/asm/vdso.h')
-rw-r--r--arch/parisc/include/asm/vdso.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/vdso.h b/arch/parisc/include/asm/vdso.h
new file mode 100644
index 000000000000..81bc1d42802a
--- /dev/null
+++ b/arch/parisc/include/asm/vdso.h
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __PARISC_VDSO_H__
+#define __PARISC_VDSO_H__
+
+#ifndef __ASSEMBLER__
+
+#ifdef CONFIG_64BIT
+#include <generated/vdso64-offsets.h>
+#endif
+#include <generated/vdso32-offsets.h>
+
+#define VDSO64_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso64_offset_##name))
+#define VDSO32_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso32_offset_##name))
+
+#endif /* __ASSEMBLER__ */
+
+/* Default link addresses for the vDSOs */
+#define VDSO_LBASE 0
+
+#define VDSO_VERSION_STRING LINUX_6.11
+
+#endif /* __PARISC_VDSO_H__ */