2006-01-08 16:01:31 +07:00
|
|
|
/*
|
2007-10-16 15:27:00 +07:00
|
|
|
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
2006-01-08 16:01:31 +07:00
|
|
|
* Licensed under the GPL
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
#include "os.h"
|
2007-10-16 15:27:00 +07:00
|
|
|
#include "sysdep/ptrace.h"
|
2006-01-08 16:01:32 +07:00
|
|
|
|
2007-03-06 16:42:20 +07:00
|
|
|
/* Initialized from linux_main() */
|
2007-10-16 15:26:58 +07:00
|
|
|
void (*sig_info[NSIG])(int, struct uml_pt_regs *);
|
2006-01-08 16:01:32 +07: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;
|
|
|
|
}
|