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
79f1c9da
Commit
79f1c9da
authored
Aug 15, 2009
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Convert
SH-3
to new cacheflush interface.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
a58e1a2a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
arch/sh/mm/cache-sh3.c
arch/sh/mm/cache-sh3.c
+15
-10
arch/sh/mm/cache.c
arch/sh/mm/cache.c
+6
-0
No files found.
arch/sh/mm/cache-sh3.c
View file @
79f1c9da
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
* SIZE: Size of the region.
* SIZE: Size of the region.
*/
*/
void
__flush_wback_region
(
void
*
start
,
int
size
)
static
void
sh3
__flush_wback_region
(
void
*
start
,
int
size
)
{
{
unsigned
long
v
,
j
;
unsigned
long
v
,
j
;
unsigned
long
begin
,
end
;
unsigned
long
begin
,
end
;
...
@@ -71,7 +71,7 @@ void __flush_wback_region(void *start, int size)
...
@@ -71,7 +71,7 @@ void __flush_wback_region(void *start, int size)
* START: Virtual Address (U0, P1, or P3)
* START: Virtual Address (U0, P1, or P3)
* SIZE: Size of the region.
* SIZE: Size of the region.
*/
*/
void
__flush_purge_region
(
void
*
start
,
int
size
)
static
void
sh3
__flush_purge_region
(
void
*
start
,
int
size
)
{
{
unsigned
long
v
;
unsigned
long
v
;
unsigned
long
begin
,
end
;
unsigned
long
begin
,
end
;
...
@@ -90,11 +90,16 @@ void __flush_purge_region(void *start, int size)
...
@@ -90,11 +90,16 @@ void __flush_purge_region(void *start, int size)
}
}
}
}
/*
void
__init
sh3_cache_init
(
void
)
{
__flush_wback_region
=
sh3__flush_wback_region
;
__flush_purge_region
=
sh3__flush_purge_region
;
/*
* No write back please
* No write back please
*
*
* Except I don't think there's any way to avoid the writeback. So we
* Except I don't think there's any way to avoid the writeback.
* just alias it to
__flush_purge_region(). dwmw2.
* So we just alias it to sh3
__flush_purge_region(). dwmw2.
*/
*/
void
__flush_invalidate_region
(
void
*
start
,
int
size
)
__flush_invalidate_region
=
sh3__flush_purge_region
;
__attribute__
((
alias
(
"__flush_purge_region"
)));
}
arch/sh/mm/cache.c
View file @
79f1c9da
...
@@ -256,6 +256,12 @@ void __init cpu_cache_init(void)
...
@@ -256,6 +256,12 @@ void __init cpu_cache_init(void)
sh2a_cache_init
();
sh2a_cache_init
();
}
}
if
(
boot_cpu_data
.
family
==
CPU_FAMILY_SH3
)
{
extern
void
__weak
sh3_cache_init
(
void
);
sh3_cache_init
();
}
if
((
boot_cpu_data
.
family
==
CPU_FAMILY_SH4
)
||
if
((
boot_cpu_data
.
family
==
CPU_FAMILY_SH4
)
||
(
boot_cpu_data
.
family
==
CPU_FAMILY_SH4A
)
||
(
boot_cpu_data
.
family
==
CPU_FAMILY_SH4A
)
||
(
boot_cpu_data
.
family
==
CPU_FAMILY_SH4AL_DSP
))
{
(
boot_cpu_data
.
family
==
CPU_FAMILY_SH4AL_DSP
))
{
...
...
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