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
nexedi
linux
Commits
7883a18c
Commit
7883a18c
authored
Jan 15, 2004
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Tidy ELF_HWCAP and ELF_PLATFORM.
Provide all relevant platform identifiers up to ev67.
parent
755fa12b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
include/asm-alpha/elf.h
include/asm-alpha/elf.h
+7
-15
No files found.
include/asm-alpha/elf.h
View file @
7883a18c
...
@@ -122,27 +122,19 @@ extern int dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task);
...
@@ -122,27 +122,19 @@ extern int dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task);
instruction set this CPU supports. This is trivial on Alpha,
instruction set this CPU supports. This is trivial on Alpha,
but not so on other machines. */
but not so on other machines. */
#define ELF_HWCAP \
#define ELF_HWCAP (~amask(-1))
({ \
/* Sadly, most folks don't yet have assemblers that know about \
amask. This is "amask v0, v0" */
\
register long _v0 __asm("$0") = -1; \
__asm(".long 0x47e00c20" : "=r"(_v0) : "0"(_v0)); \
~_v0; \
})
/* This yields a string that ld.so will use to load implementation
/* This yields a string that ld.so will use to load implementation
specific libraries for optimization. This is more specific in
specific libraries for optimization. This is more specific in
intent than poking at uname or /proc/cpuinfo.
intent than poking at uname or /proc/cpuinfo. */
This might do with checking bwx simultaneously... */
#define ELF_PLATFORM \
#define ELF_PLATFORM \
({ \
({ \
/* Or "implver v0" ... */
\
enum implver_enum i_ = implver(); \
register long _v0 __asm("$0"); \
( i_ == IMPLVER_EV4 ? "ev4" \
__asm(".long 0x47e03d80" : "=r"(_v0)); \
: i_ == IMPLVER_EV5 \
_v0 == 0 ? "ev4" : "ev5"; \
? (amask(AMASK_BWX) ? "ev5" : "ev56") \
: amask (AMASK_CIX) ? "ev6" : "ev67"); \
})
})
#ifdef __KERNEL__
#ifdef __KERNEL__
...
...
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