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
e92b9257
Commit
e92b9257
authored
Feb 11, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Handle hypervisor case correctly in copy_tsb().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
02fd473b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
arch/sparc64/mm/tsb.c
arch/sparc64/mm/tsb.c
+9
-2
No files found.
arch/sparc64/mm/tsb.c
View file @
e92b9257
...
...
@@ -231,7 +231,13 @@ static void copy_tsb(struct tsb *old_tsb, unsigned long old_size,
register
unsigned
long
pte
asm
(
"o5"
);
unsigned
long
v
,
hash
;
if
(
tlb_type
==
cheetah_plus
)
{
if
(
tlb_type
==
hypervisor
)
{
__asm__
__volatile__
(
"ldda [%2] %3, %0"
:
"=r"
(
tag
),
"=r"
(
pte
)
:
"r"
(
__pa
(
&
old_tsb
[
i
])),
"i"
(
ASI_QUAD_LDD_PHYS_4V
));
}
else
if
(
tlb_type
==
cheetah_plus
)
{
__asm__
__volatile__
(
"ldda [%2] %3, %0"
:
"=r"
(
tag
),
"=r"
(
pte
)
...
...
@@ -267,7 +273,8 @@ static void copy_tsb(struct tsb *old_tsb, unsigned long old_size,
v
|=
(
i
&
(
512UL
-
1UL
))
<<
13UL
;
hash
=
tsb_hash
(
v
,
new_nentries
);
if
(
tlb_type
==
cheetah_plus
)
{
if
(
tlb_type
==
cheetah_plus
||
tlb_type
==
hypervisor
)
{
__asm__
__volatile__
(
"stxa %0, [%1] %2
\n\t
"
"stxa %3, [%4] %2"
...
...
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