Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
6e346228
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看板
提交
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,
* Handle the "normal" cases first - successful and sigbus
*/
switch
(
fault
)
{
case
2
:
case
VM_FAULT_MAJOR
:
tsk
->
maj_flt
++
;
return
fault
;
case
1
:
case
VM_FAULT_MINOR
:
tsk
->
min_flt
++
;
case
0
:
case
VM_FAULT_SIGBUS
:
return
fault
;
}
...
...
@@ -226,14 +226,11 @@ int do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
/*
* Handle the "normal" case first
*/
if
(
fault
>
0
)
switch
(
fault
)
{
case
VM_FAULT_MINOR
:
case
VM_FAULT_MAJOR
:
return
0
;
/*
* We had some memory, but were unable to
* successfully fix up this page fault.
*/
if
(
fault
==
0
){
case
VM_FAULT_SIGBUS
:
goto
do_sigbus
;
}
...
...
arch/cris/mm/fault.c
浏览文件 @
6e346228
...
...
@@ -284,13 +284,13 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
*/
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
writeaccess
&
1
))
{
case
1
:
case
VM_FAULT_MINOR
:
tsk
->
min_flt
++
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
tsk
->
maj_flt
++
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
goto
do_sigbus
;
default:
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
* the fault.
*/
switch
(
handle_mm_fault
(
mm
,
vma
,
ear0
,
write
))
{
case
1
:
case
VM_FAULT_MINOR
:
current
->
min_flt
++
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
current
->
maj_flt
++
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
goto
do_sigbus
;
default:
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,
printk
(
"handle_mm_fault returns %d
\n
"
,
fault
);
#endif
switch
(
fault
)
{
case
1
:
case
VM_FAULT_MINOR
:
current
->
min_flt
++
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
current
->
maj_flt
++
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
goto
bus_err
;
default:
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,
*/
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
(
acc_type
&
VM_WRITE
)
!=
0
))
{
case
1
:
case
VM_FAULT_MINOR
:
++
current
->
min_flt
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
++
current
->
maj_flt
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
/*
* We
ran out of memory, or some other thing happened
*
to us that made us unable to handle the page fault
* gracefully.
* We
hit a hared mapping outside of the file, or some
*
other thing happened to us that made us unable to
*
handle the page fault
gracefully.
*/
goto
bad_area
;
default:
...
...
arch/sh64/mm/fault.c
浏览文件 @
6e346228
...
...
@@ -223,13 +223,13 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long writeaccess,
*/
survive:
switch
(
handle_mm_fault
(
mm
,
vma
,
address
,
writeaccess
))
{
case
1
:
case
VM_FAULT_MINOR
:
tsk
->
min_flt
++
;
break
;
case
2
:
case
VM_FAULT_MAJOR
:
tsk
->
maj_flt
++
;
break
;
case
0
:
case
VM_FAULT_SIGBUS
:
goto
do_sigbus
;
default:
goto
out_of_memory
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录