2006-01-08 17:01:31 +08:00
|
|
|
/*
|
2007-10-16 16:27:00 +08:00
|
|
|
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
2006-01-08 17:01:31 +08:00
|
|
|
* Licensed under the GPL
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
#include "os.h"
|
2007-10-16 16:27:00 +08:00
|
|
|
#include "sysdep/ptrace.h"
|
2006-01-08 17:01:32 +08:00
|
|
|
|
2007-03-06 17:42:20 +08:00
|
|
|
/* Initialized from linux_main() */
|
2007-10-16 16:26:58 +08:00
|
|
|
void (*sig_info[NSIG])(int, struct uml_pt_regs *);
|
2006-01-08 17:01:32 +08:00
|
|
|
|
|
|
|
void os_fill_handlinfo(struct kern_handlers h)
|
|
|
|
{
|
|
|
|
sig_info[SIGTRAP] = h.relay_signal;
|
|
|
|
sig_info[SIGFPE] = h.relay_signal;
|
|
|
|
sig_info[SIGILL] = h.relay_signal;
|
|
|
|
sig_info[SIGWINCH] = h.winch;
|
|
|
|
sig_info[SIGBUS] = h.bus_handler;
|
|
|
|
sig_info[SIGSEGV] = h.page_fault;
|
|
|
|
sig_info[SIGIO] = h.sigio_handler;
|
|
|
|
sig_info[SIGVTALRM] = h.timer_handler;
|
|
|
|
}
|