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
a9f1365e
Commit
a9f1365e
authored
Dec 10, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Use utsname()->machine for ELF_PLATFORM.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
cd01204b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
include/asm-sh/elf.h
include/asm-sh/elf.h
+8
-6
No files found.
include/asm-sh/elf.h
View file @
a9f1365e
...
@@ -62,11 +62,6 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];
...
@@ -62,11 +62,6 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];
typedef
struct
user_fpu_struct
elf_fpregset_t
;
typedef
struct
user_fpu_struct
elf_fpregset_t
;
/*
* This is used to ensure we don't load something for the wrong architecture.
*/
#define elf_check_arch(x) ( (x)->e_machine == EM_SH )
/*
/*
* These are used to set parameters in the core dumps.
* These are used to set parameters in the core dumps.
*/
*/
...
@@ -78,6 +73,12 @@ typedef struct user_fpu_struct elf_fpregset_t;
...
@@ -78,6 +73,12 @@ typedef struct user_fpu_struct elf_fpregset_t;
#endif
#endif
#define ELF_ARCH EM_SH
#define ELF_ARCH EM_SH
#ifdef __KERNEL__
/*
* This is used to ensure we don't load something for the wrong architecture.
*/
#define elf_check_arch(x) ( (x)->e_machine == EM_SH )
#define USE_ELF_CORE_DUMP
#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE PAGE_SIZE
#define ELF_EXEC_PAGESIZE PAGE_SIZE
...
@@ -106,7 +107,7 @@ typedef struct user_fpu_struct elf_fpregset_t;
...
@@ -106,7 +107,7 @@ typedef struct user_fpu_struct elf_fpregset_t;
For the moment, we have only optimizations for the Intel generations,
For the moment, we have only optimizations for the Intel generations,
but that could change... */
but that could change... */
#define ELF_PLATFORM
(NULL
)
#define ELF_PLATFORM
(utsname()->machine
)
#ifdef __SH5__
#ifdef __SH5__
#define ELF_PLAT_INIT(_r, load_addr) \
#define ELF_PLAT_INIT(_r, load_addr) \
...
@@ -182,4 +183,5 @@ do { \
...
@@ -182,4 +183,5 @@ do { \
NEW_AUX_ENT(AT_L2_CACHESHAPE, l2_cache_shape); \
NEW_AUX_ENT(AT_L2_CACHESHAPE, l2_cache_shape); \
} while (0)
} while (0)
#endif
/* __KERNEL__ */
#endif
/* __ASM_SH_ELF_H */
#endif
/* __ASM_SH_ELF_H */
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