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
8b224b81
Commit
8b224b81
authored
Aug 16, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Create a HWCAP_SPARC_N2 and report it to userspace on Niagara-2.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
7dc40880
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
include/asm-sparc64/elf.h
include/asm-sparc64/elf.h
+8
-2
No files found.
include/asm-sparc64/elf.h
View file @
8b224b81
...
...
@@ -70,6 +70,7 @@
#define HWCAP_SPARC_V9 16
#define HWCAP_SPARC_ULTRA3 32
#define HWCAP_SPARC_BLKINIT 64
#define HWCAP_SPARC_N2 128
/*
* These are used to set parameters in the core dumps.
...
...
@@ -155,8 +156,13 @@ static inline unsigned int sparc64_elf_hwcap(void)
if
(
tlb_type
==
cheetah
||
tlb_type
==
cheetah_plus
)
cap
|=
HWCAP_SPARC_ULTRA3
;
else
if
(
tlb_type
==
hypervisor
)
cap
|=
HWCAP_SPARC_BLKINIT
;
else
if
(
tlb_type
==
hypervisor
)
{
if
(
sun4v_chip_type
==
SUN4V_CHIP_NIAGARA1
||
sun4v_chip_type
==
SUN4V_CHIP_NIAGARA2
)
cap
|=
HWCAP_SPARC_BLKINIT
;
if
(
sun4v_chip_type
==
SUN4V_CHIP_NIAGARA2
)
cap
|=
HWCAP_SPARC_N2
;
}
return
cap
;
}
...
...
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