Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
7d9fa4aa
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7d9fa4aa
编写于
5月 12, 2012
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sparc32: Un-btfixup pgd_{none,bad,present}.
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
6439d1c6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
22 deletion
+16
-22
arch/sparc/include/asm/pgtable_32.h
arch/sparc/include/asm/pgtable_32.h
+13
-6
arch/sparc/mm/srmmu.c
arch/sparc/mm/srmmu.c
+3
-16
未找到文件。
arch/sparc/include/asm/pgtable_32.h
浏览文件 @
7d9fa4aa
...
...
@@ -171,13 +171,20 @@ static inline void pmd_clear(pmd_t *pmdp)
srmmu_set_pte
((
pte_t
*
)
&
pmdp
->
pmdv
[
i
],
__pte
(
0
));
}
BTFIXUPDEF_CALL_CONST
(
int
,
pgd_none
,
pgd_t
)
BTFIXUPDEF_CALL_CONST
(
int
,
pgd_bad
,
pgd_t
)
BTFIXUPDEF_CALL_CONST
(
int
,
pgd_present
,
pgd_t
)
static
inline
int
pgd_none
(
pgd_t
pgd
)
{
return
!
(
pgd_val
(
pgd
)
&
0xFFFFFFF
);
}
#define pgd_none(pgd) BTFIXUP_CALL(pgd_none)(pgd)
#define pgd_bad(pgd) BTFIXUP_CALL(pgd_bad)(pgd)
#define pgd_present(pgd) BTFIXUP_CALL(pgd_present)(pgd)
static
inline
int
pgd_bad
(
pgd_t
pgd
)
{
return
(
pgd_val
(
pgd
)
&
SRMMU_ET_MASK
)
!=
SRMMU_ET_PTD
;
}
static
inline
int
pgd_present
(
pgd_t
pgd
)
{
return
((
pgd_val
(
pgd
)
&
SRMMU_ET_MASK
)
==
SRMMU_ET_PTD
);
}
static
inline
void
pgd_clear
(
pgd_t
*
pgdp
)
{
...
...
arch/sparc/mm/srmmu.c
浏览文件 @
7d9fa4aa
...
...
@@ -124,15 +124,6 @@ static inline int srmmu_pmd_bad(pmd_t pmd)
static
inline
int
srmmu_pmd_present
(
pmd_t
pmd
)
{
return
((
pmd_val
(
pmd
)
&
SRMMU_ET_MASK
)
==
SRMMU_ET_PTD
);
}
static
inline
int
srmmu_pgd_none
(
pgd_t
pgd
)
{
return
!
(
pgd_val
(
pgd
)
&
0xFFFFFFF
);
}
static
inline
int
srmmu_pgd_bad
(
pgd_t
pgd
)
{
return
(
pgd_val
(
pgd
)
&
SRMMU_ET_MASK
)
!=
SRMMU_ET_PTD
;
}
static
inline
int
srmmu_pgd_present
(
pgd_t
pgd
)
{
return
((
pgd_val
(
pgd
)
&
SRMMU_ET_MASK
)
==
SRMMU_ET_PTD
);
}
static
inline
pte_t
srmmu_pte_wrprotect
(
pte_t
pte
)
{
return
__pte
(
pte_val
(
pte
)
&
~
SRMMU_WRITE
);}
...
...
@@ -1007,7 +998,7 @@ static void __init srmmu_early_allocate_ptable_skeleton(unsigned long start,
while
(
start
<
end
)
{
pgdp
=
pgd_offset_k
(
start
);
if
(
srmmu_
pgd_none
(
*
(
pgd_t
*
)
__nocache_fix
(
pgdp
)))
{
if
(
pgd_none
(
*
(
pgd_t
*
)
__nocache_fix
(
pgdp
)))
{
pmdp
=
(
pmd_t
*
)
__srmmu_get_nocache
(
SRMMU_PMD_TABLE_SIZE
,
SRMMU_PMD_TABLE_SIZE
);
if
(
pmdp
==
NULL
)
...
...
@@ -1038,7 +1029,7 @@ static void __init srmmu_allocate_ptable_skeleton(unsigned long start,
while
(
start
<
end
)
{
pgdp
=
pgd_offset_k
(
start
);
if
(
srmmu_
pgd_none
(
*
pgdp
))
{
if
(
pgd_none
(
*
pgdp
))
{
pmdp
=
(
pmd_t
*
)
__srmmu_get_nocache
(
SRMMU_PMD_TABLE_SIZE
,
SRMMU_PMD_TABLE_SIZE
);
if
(
pmdp
==
NULL
)
early_pgtable_allocfail
(
"pmd"
);
...
...
@@ -1104,7 +1095,7 @@ static void __init srmmu_inherit_prom_mappings(unsigned long start,
start
+=
SRMMU_PGDIR_SIZE
;
continue
;
}
if
(
srmmu_
pgd_none
(
*
(
pgd_t
*
)
__nocache_fix
(
pgdp
)))
{
if
(
pgd_none
(
*
(
pgd_t
*
)
__nocache_fix
(
pgdp
)))
{
pmdp
=
(
pmd_t
*
)
__srmmu_get_nocache
(
SRMMU_PMD_TABLE_SIZE
,
SRMMU_PMD_TABLE_SIZE
);
if
(
pmdp
==
NULL
)
early_pgtable_allocfail
(
"pmd"
);
...
...
@@ -2090,10 +2081,6 @@ void __init ld_mmu_srmmu(void)
BTFIXUPSET_CALL
(
pmd_bad
,
srmmu_pmd_bad
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pmd_present
,
srmmu_pmd_present
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pgd_none
,
srmmu_pgd_none
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pgd_bad
,
srmmu_pgd_bad
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pgd_present
,
srmmu_pgd_present
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mk_pte
,
srmmu_mk_pte
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mk_pte_phys
,
srmmu_mk_pte_phys
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mk_pte_io
,
srmmu_mk_pte_io
,
BTFIXUPCALL_NORM
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录