提交 53dd2b55 编写于 作者: J Jeff Dike 提交者: Linus Torvalds

[PATCH] uml: use correct SIGBUS handler

BB noticed that we had the wrong bus error handler.
Signed-off-by: NJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 09b185a3
...@@ -140,14 +140,6 @@ void segv_handler(int sig, union uml_pt_regs *regs) ...@@ -140,14 +140,6 @@ void segv_handler(int sig, union uml_pt_regs *regs)
segv(*fi, UPT_IP(regs), UPT_IS_USER(regs), regs); segv(*fi, UPT_IP(regs), UPT_IS_USER(regs), regs);
} }
const struct kern_handlers handlinfo_kern = {
.relay_signal = relay_signal,
.winch = winch,
.bus_handler = relay_signal,
.page_fault = segv_handler,
.sigio_handler = sigio_handler,
.timer_handler = timer_handler
};
/* /*
* We give a *copy* of the faultinfo in the regs to segv. * We give a *copy* of the faultinfo in the regs to segv.
* This must be done, since nesting SEGVs could overwrite * This must be done, since nesting SEGVs could overwrite
...@@ -253,6 +245,15 @@ void winch(int sig, union uml_pt_regs *regs) ...@@ -253,6 +245,15 @@ void winch(int sig, union uml_pt_regs *regs)
do_IRQ(WINCH_IRQ, regs); do_IRQ(WINCH_IRQ, regs);
} }
const struct kern_handlers handlinfo_kern = {
.relay_signal = relay_signal,
.winch = winch,
.bus_handler = bus_handler,
.page_fault = segv_handler,
.sigio_handler = sigio_handler,
.timer_handler = timer_handler
};
void trap_init(void) void trap_init(void)
{ {
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册