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
53de0d47
Commit
53de0d47
authored
Mar 18, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformat; cosmetic cleanups.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
1592dac2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
arch/mips/mm/cache.c
arch/mips/mm/cache.c
+2
-1
include/asm-mips/cacheflush.h
include/asm-mips/cacheflush.h
+18
-13
No files found.
arch/mips/mm/cache.c
View file @
53de0d47
...
@@ -23,7 +23,8 @@ void (*__flush_cache_all)(void);
...
@@ -23,7 +23,8 @@ void (*__flush_cache_all)(void);
void
(
*
flush_cache_mm
)(
struct
mm_struct
*
mm
);
void
(
*
flush_cache_mm
)(
struct
mm_struct
*
mm
);
void
(
*
flush_cache_range
)(
struct
vm_area_struct
*
vma
,
unsigned
long
start
,
void
(
*
flush_cache_range
)(
struct
vm_area_struct
*
vma
,
unsigned
long
start
,
unsigned
long
end
);
unsigned
long
end
);
void
(
*
flush_cache_page
)(
struct
vm_area_struct
*
vma
,
unsigned
long
page
,
unsigned
long
pfn
);
void
(
*
flush_cache_page
)(
struct
vm_area_struct
*
vma
,
unsigned
long
page
,
unsigned
long
pfn
);
void
(
*
flush_icache_range
)(
unsigned
long
__user
start
,
void
(
*
flush_icache_range
)(
unsigned
long
__user
start
,
unsigned
long
__user
end
);
unsigned
long
__user
end
);
void
(
*
flush_icache_page
)(
struct
vm_area_struct
*
vma
,
struct
page
*
page
);
void
(
*
flush_icache_page
)(
struct
vm_area_struct
*
vma
,
struct
page
*
page
);
...
...
include/asm-mips/cacheflush.h
View file @
53de0d47
...
@@ -54,19 +54,24 @@ extern void (*flush_icache_range)(unsigned long __user start,
...
@@ -54,19 +54,24 @@ extern void (*flush_icache_range)(unsigned long __user start,
#define flush_cache_vmap(start, end) flush_cache_all()
#define flush_cache_vmap(start, end) flush_cache_all()
#define flush_cache_vunmap(start, end) flush_cache_all()
#define flush_cache_vunmap(start, end) flush_cache_all()
#define copy_to_user_page(vma, page, vaddr, dst, src, len) \
static
inline
void
copy_to_user_page
(
struct
vm_area_struct
*
vma
,
do { \
struct
page
*
page
,
unsigned
long
vaddr
,
void
*
dst
,
const
void
*
src
,
if (cpu_has_dc_aliases) \
unsigned
long
len
)
flush_cache_page(vma, vaddr); \
{
memcpy(dst, (void *) src, len); \
if
(
cpu_has_dc_aliases
)
flush_icache_page(vma, page); \
flush_cache_page
(
vma
,
vaddr
,
page_to_pfn
(
page
));
} while (0)
memcpy
(
dst
,
src
,
len
);
#define copy_from_user_page(vma, page, vaddr, dst, src, len) \
flush_icache_page
(
vma
,
page
);
do { \
}
if (cpu_has_dc_aliases) \
flush_cache_page(vma, vaddr); \
static
inline
void
copy_from_user_page
(
struct
vm_area_struct
*
vma
,
memcpy(dst, src, len); \
struct
page
*
page
,
unsigned
long
vaddr
,
void
*
dst
,
const
void
*
src
,
} while (0)
unsigned
long
len
)
{
if
(
cpu_has_dc_aliases
)
flush_cache_page
(
vma
,
vaddr
,
page_to_pfn
(
page
));
memcpy
(
dst
,
src
,
len
);
}
extern
void
(
*
flush_cache_sigtramp
)(
unsigned
long
addr
);
extern
void
(
*
flush_cache_sigtramp
)(
unsigned
long
addr
);
extern
void
(
*
flush_icache_all
)(
void
);
extern
void
(
*
flush_icache_all
)(
void
);
...
...
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