Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
68acfdcb
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
68acfdcb
编写于
12月 25, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
m68k: switch to generic extable.h
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
d597580d
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
11 addition
and
51 deletion
+11
-51
arch/m68k/include/asm/Kbuild
arch/m68k/include/asm/Kbuild
+1
-0
arch/m68k/include/asm/processor.h
arch/m68k/include/asm/processor.h
+0
-10
arch/m68k/include/asm/uaccess.h
arch/m68k/include/asm/uaccess.h
+1
-0
arch/m68k/include/asm/uaccess_mm.h
arch/m68k/include/asm/uaccess_mm.h
+0
-18
arch/m68k/include/asm/uaccess_no.h
arch/m68k/include/asm/uaccess_no.h
+0
-19
arch/m68k/kernel/signal.c
arch/m68k/kernel/signal.c
+1
-1
arch/m68k/kernel/traps.c
arch/m68k/kernel/traps.c
+7
-2
arch/m68k/mm/fault.c
arch/m68k/mm/fault.c
+1
-1
未找到文件。
arch/m68k/include/asm/Kbuild
浏览文件 @
68acfdcb
...
@@ -5,6 +5,7 @@ generic-y += device.h
...
@@ -5,6 +5,7 @@ generic-y += device.h
generic-y += emergency-restart.h
generic-y += emergency-restart.h
generic-y += errno.h
generic-y += errno.h
generic-y += exec.h
generic-y += exec.h
generic-y += extable.h
generic-y += futex.h
generic-y += futex.h
generic-y += hw_irq.h
generic-y += hw_irq.h
generic-y += ioctl.h
generic-y += ioctl.h
...
...
arch/m68k/include/asm/processor.h
浏览文件 @
68acfdcb
...
@@ -122,16 +122,6 @@ static inline void start_thread(struct pt_regs * regs, unsigned long pc,
...
@@ -122,16 +122,6 @@ static inline void start_thread(struct pt_regs * regs, unsigned long pc,
wrusp
(
usp
);
wrusp
(
usp
);
}
}
#ifdef CONFIG_MMU
extern
int
handle_kernel_fault
(
struct
pt_regs
*
regs
);
#else
static
inline
int
handle_kernel_fault
(
struct
pt_regs
*
regs
)
{
/* Any fault in kernel is fatal on non-mmu */
return
0
;
}
#endif
/* Forward declaration, a strange C thing */
/* Forward declaration, a strange C thing */
struct
task_struct
;
struct
task_struct
;
...
...
arch/m68k/include/asm/uaccess.h
浏览文件 @
68acfdcb
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#include <asm/uaccess_mm.h>
#include <asm/uaccess_mm.h>
#endif
#endif
#include <asm/extable.h>
#ifdef CONFIG_CPU_HAS_NO_UNALIGNED
#ifdef CONFIG_CPU_HAS_NO_UNALIGNED
#include <asm-generic/uaccess-unaligned.h>
#include <asm-generic/uaccess-unaligned.h>
#else
#else
...
...
arch/m68k/include/asm/uaccess_mm.h
浏览文件 @
68acfdcb
...
@@ -31,24 +31,6 @@ static inline int access_ok(int type, const void __user *addr,
...
@@ -31,24 +31,6 @@ static inline int access_ok(int type, const void __user *addr,
#define MOVES "move"
#define MOVES "move"
#endif
#endif
/*
* The exception table consists of pairs of addresses: the first is the
* address of an instruction that is allowed to fault, and the second is
* the address at which the program should continue. No registers are
* modified, so it is entirely up to the continuation code to figure out
* what to do.
*
* All the routines below use bits of fixup code that are out of line
* with the main instruction path. This means when everything is well,
* we don't even have to jump over them. Further, they do not intrude
* on our cache or tlb entries.
*/
struct
exception_table_entry
{
unsigned
long
insn
,
fixup
;
};
extern
int
__put_user_bad
(
void
);
extern
int
__put_user_bad
(
void
);
extern
int
__get_user_bad
(
void
);
extern
int
__get_user_bad
(
void
);
...
...
arch/m68k/include/asm/uaccess_no.h
浏览文件 @
68acfdcb
...
@@ -22,25 +22,6 @@ static inline int _access_ok(unsigned long addr, unsigned long size)
...
@@ -22,25 +22,6 @@ static inline int _access_ok(unsigned long addr, unsigned long size)
return
1
;
return
1
;
}
}
/*
* The exception table consists of pairs of addresses: the first is the
* address of an instruction that is allowed to fault, and the second is
* the address at which the program should continue. No registers are
* modified, so it is entirely up to the continuation code to figure out
* what to do.
*
* All the routines below use bits of fixup code that are out of line
* with the main instruction path. This means when everything is well,
* we don't even have to jump over them. Further, they do not intrude
* on our cache or tlb entries.
*/
struct
exception_table_entry
{
unsigned
long
insn
,
fixup
;
};
/*
/*
* These are the main single-value transfer routines. They automatically
* These are the main single-value transfer routines. They automatically
* use the right size if we just have the right pointer type.
* use the right size if we just have the right pointer type.
...
...
arch/m68k/kernel/signal.c
浏览文件 @
68acfdcb
...
@@ -88,7 +88,7 @@ static inline int frame_extra_sizes(int f)
...
@@ -88,7 +88,7 @@ static inline int frame_extra_sizes(int f)
return
frame_size_change
[
f
];
return
frame_size_change
[
f
];
}
}
int
handle_kernel_fault
(
struct
pt_regs
*
regs
)
int
fixup_exception
(
struct
pt_regs
*
regs
)
{
{
const
struct
exception_table_entry
*
fixup
;
const
struct
exception_table_entry
*
fixup
;
struct
pt_regs
*
tregs
;
struct
pt_regs
*
tregs
;
...
...
arch/m68k/kernel/traps.c
浏览文件 @
68acfdcb
...
@@ -1016,7 +1016,12 @@ asmlinkage void trap_c(struct frame *fp)
...
@@ -1016,7 +1016,12 @@ asmlinkage void trap_c(struct frame *fp)
/* traced a trapping instruction on a 68020/30,
/* traced a trapping instruction on a 68020/30,
* real exception will be executed afterwards.
* real exception will be executed afterwards.
*/
*/
}
else
if
(
!
handle_kernel_fault
(
&
fp
->
ptregs
))
return
;
}
#ifdef CONFIG_MMU
if
(
fixup_exception
(
&
fp
->
ptregs
))
return
;
#endif
bad_super_trap
(
fp
);
bad_super_trap
(
fp
);
return
;
return
;
}
}
...
...
arch/m68k/mm/fault.c
浏览文件 @
68acfdcb
...
@@ -32,7 +32,7 @@ int send_fault_sig(struct pt_regs *regs)
...
@@ -32,7 +32,7 @@ int send_fault_sig(struct pt_regs *regs)
force_sig_info
(
siginfo
.
si_signo
,
force_sig_info
(
siginfo
.
si_signo
,
&
siginfo
,
current
);
&
siginfo
,
current
);
}
else
{
}
else
{
if
(
handle_kernel_fault
(
regs
))
if
(
fixup_exception
(
regs
))
return
-
1
;
return
-
1
;
//if (siginfo.si_signo == SIGBUS)
//if (siginfo.si_signo == SIGBUS)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录