Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2bedbdf4
Commit
2bedbdf4
authored
Nov 06, 2008
by
Catalin Marinas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add HWCAP_NEON to the ARM hwcap.h file
Signed-off-by:
Catalin Marinas
<
catalin.marinas@arm.com
>
parent
4369ae16
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
arch/arm/include/asm/hwcap.h
arch/arm/include/asm/hwcap.h
+1
-0
arch/arm/kernel/setup.c
arch/arm/kernel/setup.c
+1
-0
arch/arm/vfp/vfpmodule.c
arch/arm/vfp/vfpmodule.c
+9
-0
No files found.
arch/arm/include/asm/hwcap.h
View file @
2bedbdf4
...
...
@@ -16,6 +16,7 @@
#define HWCAP_IWMMXT 512
#define HWCAP_CRUNCH 1024
#define HWCAP_THUMBEE 2048
#define HWCAP_NEON 4096
#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
/*
...
...
arch/arm/kernel/setup.c
View file @
2bedbdf4
...
...
@@ -773,6 +773,7 @@ static const char *hwcap_str[] = {
"iwmmxt"
,
"crunch"
,
"thumbee"
,
"neon"
,
NULL
};
...
...
arch/arm/vfp/vfpmodule.c
View file @
2bedbdf4
...
...
@@ -371,6 +371,15 @@ static int __init vfp_init(void)
* in place; report VFP support to userspace.
*/
elf_hwcap
|=
HWCAP_VFP
;
#ifdef CONFIG_NEON
/*
* Check for the presence of the Advanced SIMD
* load/store instructions, integer and single
* precision floating point operations.
*/
if
((
fmrx
(
MVFR1
)
&
0x000fff00
)
==
0x00011100
)
elf_hwcap
|=
HWCAP_NEON
;
#endif
}
return
0
;
}
...
...
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