diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-12-10 16:21:57 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-28 13:19:00 +0900 |
commit | 98c4ecde9da14fafbcf1b6c025b08342a327e644 (patch) | |
tree | 62777e19b70830cd5ecaa7b92ac643033cb161bd /include/asm-sh/elf.h | |
parent | a9f1365e5e4963705f85a6381cbed74c5615dbac (diff) | |
download | op-kernel-dev-98c4ecde9da14fafbcf1b6c025b08342a327e644.zip op-kernel-dev-98c4ecde9da14fafbcf1b6c025b08342a327e644.tar.gz |
sh: Provide the FPSCR init through AT_FPUCW.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/elf.h')
-rw-r--r-- | include/asm-sh/elf.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-sh/elf.h b/include/asm-sh/elf.h index 9a95f8c..e00a58c 100644 --- a/include/asm-sh/elf.h +++ b/include/asm-sh/elf.h @@ -169,13 +169,22 @@ extern void __kernel_vsyscall; #define VSYSCALL_AUX_ENT #endif /* CONFIG_VSYSCALL */ +#ifdef CONFIG_SH_FPU +#define FPU_AUX_ENT NEW_AUX_ENT(AT_FPUCW, FPSCR_INIT) +#else +#define FPU_AUX_ENT +#endif + extern int l1i_cache_shape, l1d_cache_shape, l2_cache_shape; /* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */ #define ARCH_DLINFO \ do { \ + /* Optional FPU initialization */ \ + FPU_AUX_ENT; \ + \ /* Optional vsyscall entry */ \ - VSYSCALL_AUX_ENT \ + VSYSCALL_AUX_ENT; \ \ /* Cache desc */ \ NEW_AUX_ENT(AT_L1I_CACHESHAPE, l1i_cache_shape); \ |