aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh/elf.h')
-rw-r--r--include/asm-sh/elf.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-sh/elf.h b/include/asm-sh/elf.h
index 9a95f8cb2e13..e00a58cb476c 100644
--- a/include/asm-sh/elf.h
+++ b/include/asm-sh/elf.h
@@ -169,13 +169,22 @@ extern void __kernel_vsyscall;
169#define VSYSCALL_AUX_ENT 169#define VSYSCALL_AUX_ENT
170#endif /* CONFIG_VSYSCALL */ 170#endif /* CONFIG_VSYSCALL */
171 171
172#ifdef CONFIG_SH_FPU
173#define FPU_AUX_ENT NEW_AUX_ENT(AT_FPUCW, FPSCR_INIT)
174#else
175#define FPU_AUX_ENT
176#endif
177
172extern int l1i_cache_shape, l1d_cache_shape, l2_cache_shape; 178extern int l1i_cache_shape, l1d_cache_shape, l2_cache_shape;
173 179
174/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */ 180/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
175#define ARCH_DLINFO \ 181#define ARCH_DLINFO \
176do { \ 182do { \
183 /* Optional FPU initialization */ \
184 FPU_AUX_ENT; \
185 \
177 /* Optional vsyscall entry */ \ 186 /* Optional vsyscall entry */ \
178 VSYSCALL_AUX_ENT \ 187 VSYSCALL_AUX_ENT; \
179 \ 188 \
180 /* Cache desc */ \ 189 /* Cache desc */ \
181 NEW_AUX_ENT(AT_L1I_CACHESHAPE, l1i_cache_shape); \ 190 NEW_AUX_ENT(AT_L1I_CACHESHAPE, l1i_cache_shape); \