Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
d96b8153
Commit
d96b8153
authored
Feb 04, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Add sun4v case to __GET_CPUID() patch tables.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
e1c21c4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
arch/sparc64/kernel/setup.c
arch/sparc64/kernel/setup.c
+3
-0
include/asm-sparc64/cpudata.h
include/asm-sparc64/cpudata.h
+8
-0
No files found.
arch/sparc64/kernel/setup.c
View file @
d96b8153
...
@@ -520,6 +520,9 @@ static void __init per_cpu_patch(void)
...
@@ -520,6 +520,9 @@ static void __init per_cpu_patch(void)
else
else
insns
=
&
p
->
cheetah_safari
[
0
];
insns
=
&
p
->
cheetah_safari
[
0
];
break
;
break
;
case
hypervisor
:
insns
=
&
p
->
sun4v
[
0
];
break
;
default:
default:
prom_printf
(
"Unknown cpu type, halting.
\n
"
);
prom_printf
(
"Unknown cpu type, halting.
\n
"
);
prom_halt
();
prom_halt
();
...
...
include/asm-sparc64/cpudata.h
View file @
d96b8153
...
@@ -68,6 +68,7 @@ struct cpuid_patch_entry {
...
@@ -68,6 +68,7 @@ struct cpuid_patch_entry {
unsigned
int
cheetah_safari
[
4
];
unsigned
int
cheetah_safari
[
4
];
unsigned
int
cheetah_jbus
[
4
];
unsigned
int
cheetah_jbus
[
4
];
unsigned
int
starfire
[
4
];
unsigned
int
starfire
[
4
];
unsigned
int
sun4v
[
4
];
};
};
extern
struct
cpuid_patch_entry
__cpuid_patch
,
__cpuid_patch_end
;
extern
struct
cpuid_patch_entry
__cpuid_patch
,
__cpuid_patch_end
;
#endif
#endif
...
@@ -79,6 +80,8 @@ extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end;
...
@@ -79,6 +80,8 @@ extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end;
#define TRAP_BLOCK_SZ_SHIFT 6
#define TRAP_BLOCK_SZ_SHIFT 6
#include <asm/scratchpad.h>
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
#define __GET_CPUID(REG) \
#define __GET_CPUID(REG) \
...
@@ -105,6 +108,11 @@ extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end;
...
@@ -105,6 +108,11 @@ extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end;
sllx REG, 9, REG; \
sllx REG, 9, REG; \
or REG, 0xd0, REG; \
or REG, 0xd0, REG; \
lduwa [REG] ASI_PHYS_BYPASS_EC_E, REG;\
lduwa [REG] ASI_PHYS_BYPASS_EC_E, REG;\
/* sun4v implementation. */
\
mov SCRATCHPAD_CPUID, REG; \
nop; \
ldxa [REG] ASI_SCRATCHPAD, REG; \
nop; \
.previous;
.previous;
/* Clobbers TMP, current address space PGD phys address into DEST. */
/* Clobbers TMP, current address space PGD phys address into DEST. */
...
...
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