Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
45309493
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
45309493
编写于
5月 18, 2015
作者:
V
Vineet Gupta
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARC: fold ___flush_dcache_page into __flush_dcache_page
Signed-off-by:
N
Vineet Gupta
<
vgupta@synopsys.com
>
上级
1269f4d5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
9 deletion
+7
-9
arch/arc/include/asm/cacheflush.h
arch/arc/include/asm/cacheflush.h
+1
-3
arch/arc/mm/cache_arc700.c
arch/arc/mm/cache_arc700.c
+6
-6
未找到文件。
arch/arc/include/asm/cacheflush.h
浏览文件 @
45309493
...
...
@@ -34,9 +34,7 @@ void flush_cache_all(void);
void
flush_icache_range
(
unsigned
long
start
,
unsigned
long
end
);
void
__sync_icache_dcache
(
unsigned
long
paddr
,
unsigned
long
vaddr
,
int
len
);
void
__inv_icache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
);
void
___flush_dcache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
);
#define __flush_dcache_page(p, v) \
___flush_dcache_page((unsigned long)p, (unsigned long)v)
void
__flush_dcache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
);
#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
...
...
arch/arc/mm/cache_arc700.c
浏览文件 @
45309493
...
...
@@ -493,7 +493,7 @@ void flush_dcache_page(struct page *page)
}
else
if
(
page_mapped
(
page
))
{
/* kernel reading from page with U-mapping */
void
*
paddr
=
page_address
(
page
);
unsigned
long
paddr
=
(
unsigned
long
)
page_address
(
page
);
unsigned
long
vaddr
=
page
->
index
<<
PAGE_CACHE_SHIFT
;
if
(
addr_not_cache_congruent
(
paddr
,
vaddr
))
...
...
@@ -605,7 +605,7 @@ void __inv_icache_page(unsigned long paddr, unsigned long vaddr)
* wrapper to clearout kernel or userspace mappings of a page
* For kernel mappings @vaddr == @paddr
*/
void
__
_
flush_dcache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
)
void
__flush_dcache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
)
{
__dc_line_op
(
paddr
,
vaddr
&
PAGE_MASK
,
PAGE_SIZE
,
OP_FLUSH_N_INV
);
}
...
...
@@ -637,7 +637,7 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long u_vaddr,
u_vaddr
&=
PAGE_MASK
;
__
_
flush_dcache_page
(
paddr
,
u_vaddr
);
__flush_dcache_page
(
paddr
,
u_vaddr
);
if
(
vma
->
vm_flags
&
VM_EXEC
)
__inv_icache_page
(
paddr
,
u_vaddr
);
...
...
@@ -663,8 +663,8 @@ void flush_anon_page(struct vm_area_struct *vma, struct page *page,
void
copy_user_highpage
(
struct
page
*
to
,
struct
page
*
from
,
unsigned
long
u_vaddr
,
struct
vm_area_struct
*
vma
)
{
void
*
kfrom
=
page_address
(
from
);
void
*
kto
=
page_address
(
to
);
unsigned
long
kfrom
=
(
unsigned
long
)
page_address
(
from
);
unsigned
long
kto
=
(
unsigned
long
)
page_address
(
to
);
int
clean_src_k_mappings
=
0
;
/*
...
...
@@ -680,7 +680,7 @@ void copy_user_highpage(struct page *to, struct page *from,
clean_src_k_mappings
=
1
;
}
copy_page
(
kto
,
kfrom
);
copy_page
(
(
void
*
)
kto
,
(
void
*
)
kfrom
);
/*
* Mark DST page K-mapping as dirty for a later finalization by
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录