Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
28eb559b
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
28eb559b
编写于
4月 03, 2008
作者:
I
Ingo Molnar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pat: cleanups
Signed-off-by:
N
Ingo Molnar
<
mingo@elte.hu
>
上级
e7f260a2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
11 deletion
+11
-11
arch/x86/mm/pat.c
arch/x86/mm/pat.c
+11
-11
未找到文件。
arch/x86/mm/pat.c
浏览文件 @
28eb559b
...
...
@@ -284,7 +284,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
struct
memtype
*
saved_ptr
;
if
(
parse
->
start
>=
end
)
{
pr
intk
(
"New Entry
\n
"
);
pr
_debug
(
"New Entry
\n
"
);
list_add
(
&
new_entry
->
nd
,
parse
->
nd
.
prev
);
new_entry
=
NULL
;
break
;
...
...
@@ -386,7 +386,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
break
;
}
printk
(
"Overlap at 0x%Lx-0x%Lx
\n
"
,
printk
(
KERN_INFO
"Overlap at 0x%Lx-0x%Lx
\n
"
,
saved_ptr
->
start
,
saved_ptr
->
end
);
/* No conflict. Go ahead and add this new entry */
list_add
(
&
new_entry
->
nd
,
&
saved_ptr
->
nd
);
...
...
@@ -396,7 +396,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
}
if
(
err
)
{
printk
(
printk
(
KERN_INFO
"reserve_memtype failed 0x%Lx-0x%Lx, track %s, req %s
\n
"
,
start
,
end
,
cattr_name
(
new_entry
->
type
),
cattr_name
(
req_type
));
...
...
@@ -408,16 +408,16 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
if
(
new_entry
)
{
/* No conflict. Not yet added to the list. Add to the tail */
list_add_tail
(
&
new_entry
->
nd
,
&
memtype_list
);
pr
intk
(
"New Entry
\n
"
);
}
pr
_debug
(
"New Entry
\n
"
);
}
if
(
ret_type
)
{
pr
intk
(
pr
_debug
(
"reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s, ret %s
\n
"
,
start
,
end
,
cattr_name
(
actual_type
),
cattr_name
(
req_type
),
cattr_name
(
*
ret_type
));
}
else
{
pr
intk
(
pr
_debug
(
"reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s
\n
"
,
start
,
end
,
cattr_name
(
actual_type
),
cattr_name
(
req_type
));
...
...
@@ -454,11 +454,11 @@ int free_memtype(u64 start, u64 end)
spin_unlock
(
&
memtype_lock
);
if
(
err
)
{
printk
(
KERN_
DEBUG
"%s:%d freeing invalid memtype %Lx-%Lx
\n
"
,
printk
(
KERN_
INFO
"%s:%d freeing invalid memtype %Lx-%Lx
\n
"
,
current
->
comm
,
current
->
pid
,
start
,
end
);
}
pr
intk
(
"free_memtype request 0x%Lx-0x%Lx
\n
"
,
start
,
end
);
pr
_debug
(
"free_memtype request 0x%Lx-0x%Lx
\n
"
,
start
,
end
);
return
err
;
}
...
...
@@ -529,7 +529,7 @@ int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn,
if
(
pfn
<=
max_pfn_mapped
&&
ioremap_change_attr
((
unsigned
long
)
__va
(
offset
),
size
,
flags
)
<
0
)
{
free_memtype
(
offset
,
offset
+
size
);
printk
(
KERN_
DEBUG
printk
(
KERN_
INFO
"%s:%d /dev/mem ioremap_change_attr failed %s for %Lx-%Lx
\n
"
,
current
->
comm
,
current
->
pid
,
cattr_name
(
flags
),
...
...
@@ -550,7 +550,7 @@ void map_devmem(unsigned long pfn, unsigned long size, pgprot_t vma_prot)
reserve_memtype
(
addr
,
addr
+
size
,
want_flags
,
&
flags
);
if
(
flags
!=
want_flags
)
{
printk
(
KERN_
DEBUG
printk
(
KERN_
INFO
"%s:%d /dev/mem expected mapping type %s for %Lx-%Lx, got %s
\n
"
,
current
->
comm
,
current
->
pid
,
cattr_name
(
want_flags
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录