Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
6e346228
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看板
提交
6e346228
编写于
8月 04, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
It wasn't just x86-64 that had hardcoded VM_FAULT_xxx numbers
Fix up arm26, cris, frv, m68k, parisc and sh64 too..
上级
96800216
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
25 addition
and
28 deletion
+25
-28
arch/arm26/mm/fault.c
arch/arm26/mm/fault.c
+7
-10
arch/cris/mm/fault.c
arch/cris/mm/fault.c
+3
-3
arch/frv/mm/fault.c
arch/frv/mm/fault.c
+3
-3
arch/m68k/mm/fault.c
arch/m68k/mm/fault.c
+3
-3
arch/parisc/mm/fault.c
arch/parisc/mm/fault.c
+6
-6
arch/sh64/mm/fault.c
arch/sh64/mm/fault.c
+3
-3
未找到文件。
arch/arm26/mm/fault.c
浏览文件 @
6e346228
...
@@ -176,12 +176,12 @@ __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr,
...
@@ -176,12 +176,12 @@ __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr,
* Handle the "normal" cases first - successful and sigbus
* Handle the "normal" cases first - successful and sigbus
*/
*/
switch
(
fault
)
{
switch
(
fault
)
{
case
2
:
case
VM_FAULT_MAJOR
:
tsk
->
maj_flt
++
;
tsk
->
maj_flt
++
;
return
fault
;
return
fault
;
case
1
:
case
VM_FAULT_MINOR
:
tsk
->
min_flt
++
;
tsk
->
min_flt
++
;
case
0
:
case
VM_FAULT_SIGBUS
:
return
fault
;
return
fault
;
}
}
...
@@ -226,14 +226,11 @@ int do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
...
@@ -226,14 +226,11 @@ int do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
/*
/*
* Handle the "normal" case first
* Handle the "normal" case first
*/
*/
if
(
fault
>
0
)
switch
(
fault
)
{
case
VM_FAULT_MINOR
:
case
VM_FAULT_MAJOR
:
return
0
;
return
0
;
case
VM_FAULT_SIGBUS
:
/*
* We had some memory, but were unable to
* successfully fix up this page fault.
*/
if
(
fault
==
0
){
goto
do_sigbus
;
goto
do_sigbus
;
}
}
...
...
arch/cris/mm/fault.c
浏览文件 @
6e346228
...
@@ -284,13 +284,13 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
...
@@ -284,13 +284,13 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
*/
*/
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
writeaccess
&
1
))
{
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
writeaccess
&
1
))
{
case
1
:
case
VM_FAULT_MINOR
:
tsk
->
min_flt
++
;
tsk
->
min_flt
++
;
break
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
tsk
->
maj_flt
++
;
tsk
->
maj_flt
++
;
break
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
goto
do_sigbus
;
goto
do_sigbus
;
default:
default:
goto
out_of_memory
;
goto
out_of_memory
;
...
...
arch/frv/mm/fault.c
浏览文件 @
6e346228
...
@@ -163,13 +163,13 @@ asmlinkage void do_page_fault(int datammu, unsigned long esr0, unsigned long ear
...
@@ -163,13 +163,13 @@ asmlinkage void do_page_fault(int datammu, unsigned long esr0, unsigned long ear
* the fault.
* the fault.
*/
*/
switch
(
handle_mm_fault
(
mm
,
vma
,
ear0
,
write
))
{
switch
(
handle_mm_fault
(
mm
,
vma
,
ear0
,
write
))
{
case
1
:
case
VM_FAULT_MINOR
:
current
->
min_flt
++
;
current
->
min_flt
++
;
break
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
current
->
maj_flt
++
;
current
->
maj_flt
++
;
break
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
goto
do_sigbus
;
goto
do_sigbus
;
default:
default:
goto
out_of_memory
;
goto
out_of_memory
;
...
...
arch/m68k/mm/fault.c
浏览文件 @
6e346228
...
@@ -160,13 +160,13 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,
...
@@ -160,13 +160,13 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,
printk
(
"handle_mm_fault returns %d
\n
"
,
fault
);
printk
(
"handle_mm_fault returns %d
\n
"
,
fault
);
#endif
#endif
switch
(
fault
)
{
switch
(
fault
)
{
case
1
:
case
VM_FAULT_MINOR
:
current
->
min_flt
++
;
current
->
min_flt
++
;
break
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
current
->
maj_flt
++
;
current
->
maj_flt
++
;
break
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
goto
bus_err
;
goto
bus_err
;
default:
default:
goto
out_of_memory
;
goto
out_of_memory
;
...
...
arch/parisc/mm/fault.c
浏览文件 @
6e346228
...
@@ -178,17 +178,17 @@ void do_page_fault(struct pt_regs *regs, unsigned long code,
...
@@ -178,17 +178,17 @@ void do_page_fault(struct pt_regs *regs, unsigned long code,
*/
*/
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
(
acc_type
&
VM_WRITE
)
!=
0
))
{
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
(
acc_type
&
VM_WRITE
)
!=
0
))
{
case
1
:
case
VM_FAULT_MINOR
:
++
current
->
min_flt
;
++
current
->
min_flt
;
break
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
++
current
->
maj_flt
;
++
current
->
maj_flt
;
break
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
/*
/*
* We
ran out of memory, or some other thing happened
* We
hit a hared mapping outside of the file, or some
*
to us that made us unable to handle the page fault
*
other thing happened to us that made us unable to
* gracefully.
*
handle the page fault
gracefully.
*/
*/
goto
bad_area
;
goto
bad_area
;
default:
default:
...
...
arch/sh64/mm/fault.c
浏览文件 @
6e346228
...
@@ -223,13 +223,13 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long writeaccess,
...
@@ -223,13 +223,13 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long writeaccess,
*/
*/
survive:
survive:
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
writeaccess
))
{
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
writeaccess
))
{
case
1
:
case
VM_FAULT_MINOR
:
tsk
->
min_flt
++
;
tsk
->
min_flt
++
;
break
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
tsk
->
maj_flt
++
;
tsk
->
maj_flt
++
;
break
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
goto
do_sigbus
;
goto
do_sigbus
;
default:
default:
goto
out_of_memory
;
goto
out_of_memory
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录