forked from luck/tmp_suning_uos_patched
6aa802ce6a
The next stage after removing code which depends on CONFIG_MODE_TT is removing the CHOOSE_MODE abstraction, which provided both compile-time and run-time branching to either tt-mode or skas-mode code. This patch removes choose-mode.h and all inclusions of it, and replaces all CHOOSE_MODE invocations with the skas branch. This leaves a number of trivial functions which will be dealt with in a later patch. There are some changes in the uaccess and tls support which go somewhat beyond this and eliminate some of the now-redundant functions. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
40 lines
853 B
C
40 lines
853 B
C
/*
|
|
* Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
|
|
* Licensed under the GPL
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <signal.h>
|
|
#include "kern_util.h"
|
|
#include "os.h"
|
|
#include "mode.h"
|
|
#include "longjmp.h"
|
|
|
|
void usr2_handler(int sig, union uml_pt_regs *regs)
|
|
{
|
|
}
|
|
|
|
/* Initialized from linux_main() */
|
|
void (*sig_info[NSIG])(int, union uml_pt_regs *);
|
|
|
|
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;
|
|
sig_info[SIGALRM] = h.timer_handler;
|
|
sig_info[SIGUSR2] = usr2_handler;
|
|
}
|
|
|
|
void do_longjmp(void *b, int val)
|
|
{
|
|
jmp_buf *buf = b;
|
|
|
|
UML_LONGJMP(buf, val);
|
|
}
|