Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
98c4ecde
Commit
98c4ecde
authored
Dec 10, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Provide the FPSCR init through AT_FPUCW.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
a9f1365e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
include/asm-sh/auxvec.h
include/asm-sh/auxvec.h
+6
-0
include/asm-sh/elf.h
include/asm-sh/elf.h
+10
-1
include/asm-sh/system.h
include/asm-sh/system.h
+1
-1
No files found.
include/asm-sh/auxvec.h
View file @
98c4ecde
...
...
@@ -6,6 +6,12 @@
* for more of them.
*/
/*
* This entry gives some information about the FPU initialization
* performed by the kernel.
*/
#define AT_FPUCW 18
/* Used FPU control word. */
#ifdef CONFIG_VSYSCALL
/*
* Only define this in the vsyscall case, the entry point to
...
...
include/asm-sh/elf.h
View file @
98c4ecde
...
...
@@ -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); \
...
...
include/asm-sh/system.h
View file @
98c4ecde
...
...
@@ -12,7 +12,7 @@
#include <asm/types.h>
#include <asm/ptrace.h>
#define AT_VECTOR_SIZE_ARCH
4
/* entries in ARCH_DLINFO */
#define AT_VECTOR_SIZE_ARCH
5
/* entries in ARCH_DLINFO */
#if defined(CONFIG_CPU_SH4A) || defined(CONFIG_CPU_SH5)
#define __icbi() \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment