Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b9756c04
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b9756c04
编写于
2月 28, 2006
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'upstream' of
git://ftp.linux-mips.org/pub/scm/upstream-linus
上级
b5463305
778e2ac5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
6 deletion
+30
-6
arch/mips/lib/iomap.c
arch/mips/lib/iomap.c
+1
-1
arch/mips/mm/c-r4k.c
arch/mips/mm/c-r4k.c
+11
-5
include/asm-mips/io.h
include/asm-mips/io.h
+18
-0
未找到文件。
arch/mips/lib/iomap.c
浏览文件 @
b9756c04
...
...
@@ -63,7 +63,7 @@ void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
return
ioport_map
(
start
,
len
);
if
(
flags
&
IORESOURCE_MEM
)
{
if
(
flags
&
IORESOURCE_CACHEABLE
)
return
ioremap_cach
eable_cow
(
start
,
len
);
return
ioremap_cach
able
(
start
,
len
);
return
ioremap_nocache
(
start
,
len
);
}
...
...
arch/mips/mm/c-r4k.c
浏览文件 @
b9756c04
...
...
@@ -235,7 +235,9 @@ static inline void r4k_blast_scache_page_setup(void)
{
unsigned
long
sc_lsize
=
cpu_scache_line_size
();
if
(
sc_lsize
==
16
)
if
(
scache_size
==
0
)
r4k_blast_scache_page
=
(
void
*
)
no_sc_noop
;
else
if
(
sc_lsize
==
16
)
r4k_blast_scache_page
=
blast_scache16_page
;
else
if
(
sc_lsize
==
32
)
r4k_blast_scache_page
=
blast_scache32_page
;
...
...
@@ -251,7 +253,9 @@ static inline void r4k_blast_scache_page_indexed_setup(void)
{
unsigned
long
sc_lsize
=
cpu_scache_line_size
();
if
(
sc_lsize
==
16
)
if
(
scache_size
==
0
)
r4k_blast_scache_page_indexed
=
(
void
*
)
no_sc_noop
;
else
if
(
sc_lsize
==
16
)
r4k_blast_scache_page_indexed
=
blast_scache16_page_indexed
;
else
if
(
sc_lsize
==
32
)
r4k_blast_scache_page_indexed
=
blast_scache32_page_indexed
;
...
...
@@ -267,7 +271,9 @@ static inline void r4k_blast_scache_setup(void)
{
unsigned
long
sc_lsize
=
cpu_scache_line_size
();
if
(
sc_lsize
==
16
)
if
(
scache_size
==
0
)
r4k_blast_scache
=
(
void
*
)
no_sc_noop
;
else
if
(
sc_lsize
==
16
)
r4k_blast_scache
=
blast_scache16
;
else
if
(
sc_lsize
==
32
)
r4k_blast_scache
=
blast_scache32
;
...
...
@@ -482,7 +488,7 @@ static inline void local_r4k_flush_icache_range(void *args)
protected_blast_dcache_range
(
start
,
end
);
}
if
(
!
cpu_icache_snoops_remote_store
)
{
if
(
!
cpu_icache_snoops_remote_store
&&
scache_size
)
{
if
(
end
-
start
>
scache_size
)
r4k_blast_scache
();
else
...
...
@@ -651,7 +657,7 @@ static void local_r4k_flush_cache_sigtramp(void * arg)
R4600_HIT_CACHEOP_WAR_IMPL
;
protected_writeback_dcache_line
(
addr
&
~
(
dc_lsize
-
1
));
if
(
!
cpu_icache_snoops_remote_store
)
if
(
!
cpu_icache_snoops_remote_store
&&
scache_size
)
protected_writeback_scache_line
(
addr
&
~
(
sc_lsize
-
1
));
protected_flush_icache_line
(
addr
&
~
(
ic_lsize
-
1
));
if
(
MIPS4K_ICACHE_REFILL_WAR
)
{
...
...
include/asm-mips/io.h
浏览文件 @
b9756c04
...
...
@@ -282,6 +282,24 @@ static inline void __iomem * __ioremap_mode(phys_t offset, unsigned long size,
#define ioremap_nocache(offset, size) \
__ioremap_mode((offset), (size), _CACHE_UNCACHED)
/*
* ioremap_cachable - map bus memory into CPU space
* @offset: bus address of the memory
* @size: size of the resource to map
*
* ioremap_nocache performs a platform specific sequence of operations to
* make bus memory CPU accessible via the readb/readw/readl/writeb/
* writew/writel functions and the other mmio helpers. The returned
* address is not guaranteed to be usable directly as a virtual
* address.
*
* This version of ioremap ensures that the memory is marked cachable by
* the CPU. Also enables full write-combining. Useful for some
* memory-like regions on I/O busses.
*/
#define ioremap_cachable(offset, size) \
__ioremap_mode((offset), (size), PAGE_CACHABLE_DEFAULT)
/*
* These two are MIPS specific ioremap variant. ioremap_cacheable_cow
* requests a cachable mapping, ioremap_uncached_accelerated requests a
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录