Nathan Lynch | 1713ce7 | 2015-03-25 19:13:16 +0100 | [diff] [blame] | 1 | #ifndef __ASM_VDSO_H |
| 2 | #define __ASM_VDSO_H |
| 3 | |
| 4 | #ifdef __KERNEL__ |
| 5 | |
| 6 | #ifndef __ASSEMBLY__ |
| 7 | |
| 8 | struct mm_struct; |
| 9 | |
| 10 | #ifdef CONFIG_VDSO |
| 11 | |
| 12 | void arm_install_vdso(struct mm_struct *mm, unsigned long addr); |
| 13 | |
Nathan Lynch | 1713ce7 | 2015-03-25 19:13:16 +0100 | [diff] [blame] | 14 | extern unsigned int vdso_total_pages; |
| 15 | |
| 16 | #else /* CONFIG_VDSO */ |
| 17 | |
| 18 | static inline void arm_install_vdso(struct mm_struct *mm, unsigned long addr) |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | #define vdso_total_pages 0 |
| 23 | |
| 24 | #endif /* CONFIG_VDSO */ |
| 25 | |
| 26 | #endif /* __ASSEMBLY__ */ |
| 27 | |
| 28 | #endif /* __KERNEL__ */ |
| 29 | |
| 30 | #endif /* __ASM_VDSO_H */ |