diff options
Diffstat (limited to 'arch/riscv/include/asm/vdso.h')
| -rw-r--r-- | arch/riscv/include/asm/vdso.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/riscv/include/asm/vdso.h b/arch/riscv/include/asm/vdso.h index af981426fe0f..f80357fe24d1 100644 --- a/arch/riscv/include/asm/vdso.h +++ b/arch/riscv/include/asm/vdso.h @@ -10,13 +10,13 @@ /* * All systems with an MMU have a VDSO, but systems without an MMU don't - * support shared libraries and therefor don't have one. + * support shared libraries and therefore don't have one. */ #ifdef CONFIG_MMU -#define __VVAR_PAGES 2 +#define __VDSO_PAGES 4 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <generated/vdso-offsets.h> #define VDSO_SYMBOL(base, name) \ @@ -28,9 +28,13 @@ #define COMPAT_VDSO_SYMBOL(base, name) \ (void __user *)((unsigned long)(base) + compat__vdso_##name##_offset) +extern char compat_vdso_start[], compat_vdso_end[]; + #endif /* CONFIG_COMPAT */ -#endif /* !__ASSEMBLY__ */ +extern char vdso_start[], vdso_end[]; + +#endif /* !__ASSEMBLER__ */ #endif /* CONFIG_MMU */ |
