1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 21713ce7cSNathan Lynch #ifndef __ASM_VDSO_H 31713ce7cSNathan Lynch #define __ASM_VDSO_H 41713ce7cSNathan Lynch 51713ce7cSNathan Lynch #ifdef __KERNEL__ 61713ce7cSNathan Lynch 71713ce7cSNathan Lynch #ifndef __ASSEMBLY__ 81713ce7cSNathan Lynch 91713ce7cSNathan Lynch struct mm_struct; 101713ce7cSNathan Lynch 111713ce7cSNathan Lynch #ifdef CONFIG_VDSO 121713ce7cSNathan Lynch 131713ce7cSNathan Lynch void arm_install_vdso(struct mm_struct *mm, unsigned long addr); 141713ce7cSNathan Lynch 151713ce7cSNathan Lynch extern char vdso_start, vdso_end; 161713ce7cSNathan Lynch 171713ce7cSNathan Lynch extern unsigned int vdso_total_pages; 181713ce7cSNathan Lynch 191713ce7cSNathan Lynch #else /* CONFIG_VDSO */ 201713ce7cSNathan Lynch 211713ce7cSNathan Lynch static inline void arm_install_vdso(struct mm_struct *mm, unsigned long addr) 221713ce7cSNathan Lynch { 231713ce7cSNathan Lynch } 241713ce7cSNathan Lynch 251713ce7cSNathan Lynch #define vdso_total_pages 0 261713ce7cSNathan Lynch 271713ce7cSNathan Lynch #endif /* CONFIG_VDSO */ 281713ce7cSNathan Lynch 291713ce7cSNathan Lynch #endif /* __ASSEMBLY__ */ 301713ce7cSNathan Lynch 311713ce7cSNathan Lynch #endif /* __KERNEL__ */ 321713ce7cSNathan Lynch 331713ce7cSNathan Lynch #endif /* __ASM_VDSO_H */ 34