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
Kirill Smelkov
linux
Commits
5c64e2ab
Commit
5c64e2ab
authored
Mar 30, 2009
by
Russell King
Committed by
Russell King
Mar 30, 2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-rmk' of
git://git.marvell.com/orion
parents
8f6aef92
f000328a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
arch/arm/mm/cache-feroceon-l2.c
arch/arm/mm/cache-feroceon-l2.c
+6
-3
No files found.
arch/arm/mm/cache-feroceon-l2.c
View file @
5c64e2ab
...
...
@@ -115,6 +115,10 @@ static inline void l2_inv_pa_range(unsigned long start, unsigned long end)
raw_local_irq_restore
(
flags
);
}
static
inline
void
l2_inv_all
(
void
)
{
__asm__
(
"mcr p15, 1, %0, c15, c11, 0"
:
:
"r"
(
0
));
}
/*
* Linux primitives.
...
...
@@ -254,9 +258,7 @@ static void __init enable_dcache(void)
static
void
__init
__invalidate_icache
(
void
)
{
int
dummy
;
__asm__
__volatile__
(
"mcr p15, 0, %0, c7, c5, 0"
:
"=r"
(
dummy
));
__asm__
(
"mcr p15, 0, %0, c7, c5, 0"
:
:
"r"
(
0
));
}
static
int
__init
invalidate_and_disable_icache
(
void
)
...
...
@@ -321,6 +323,7 @@ static void __init enable_l2(void)
d
=
flush_and_disable_dcache
();
i
=
invalidate_and_disable_icache
();
l2_inv_all
();
write_extra_features
(
u
|
0x00400000
);
if
(
i
)
enable_icache
();
...
...
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