diff options
Diffstat (limited to 'include/asm-sh/elf.h')
-rw-r--r-- | include/asm-sh/elf.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/include/asm-sh/elf.h b/include/asm-sh/elf.h index 5a1e920f0598..61960408e6ef 100644 --- a/include/asm-sh/elf.h +++ b/include/asm-sh/elf.h | |||
@@ -161,12 +161,25 @@ extern void __kernel_vsyscall; | |||
161 | #define VDSO_BASE ((unsigned long)current->mm->context.vdso) | 161 | #define VDSO_BASE ((unsigned long)current->mm->context.vdso) |
162 | #define VDSO_SYM(x) (VDSO_BASE + (unsigned long)(x)) | 162 | #define VDSO_SYM(x) (VDSO_BASE + (unsigned long)(x)) |
163 | 163 | ||
164 | #define VSYSCALL_AUX_ENT \ | ||
165 | if (vdso_enabled) \ | ||
166 | NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); | ||
167 | #else | ||
168 | #define VSYSCALL_AUX_ENT | ||
169 | #endif /* CONFIG_VSYSCALL */ | ||
170 | |||
171 | extern int l1i_cache_shape, l1d_cache_shape, l2_cache_shape; | ||
172 | |||
164 | /* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */ | 173 | /* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */ |
165 | #define ARCH_DLINFO \ | 174 | #define ARCH_DLINFO \ |
166 | do { \ | 175 | do { \ |
167 | if (vdso_enabled) \ | 176 | /* Optional vsyscall entry */ \ |
168 | NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \ | 177 | VSYSCALL_AUX_ENT \ |
178 | \ | ||
179 | /* Cache desc */ \ | ||
180 | NEW_AUX_ENT(AT_L1I_CACHESHAPE, l1i_cache_shape); \ | ||
181 | NEW_AUX_ENT(AT_L1D_CACHESHAPE, l1d_cache_shape); \ | ||
182 | NEW_AUX_ENT(AT_L2_CACHESHAPE, l2_cache_shape); \ | ||
169 | } while (0) | 183 | } while (0) |
170 | #endif /* CONFIG_VSYSCALL */ | ||
171 | 184 | ||
172 | #endif /* __ASM_SH_ELF_H */ | 185 | #endif /* __ASM_SH_ELF_H */ |