]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/um/os-Linux/trap.c
uml: throw out CHOOSE_MODE
[linux-2.6-omap-h63xx.git] / arch / um / os-Linux / trap.c
index a9f6b26f9828f8f4c0a99bc6a2f8449054be8bb8..b17f546c3655b67e00302092f47fbf8c35773fa0 100644 (file)
@@ -5,18 +5,16 @@
 
 #include <stdlib.h>
 #include <signal.h>
-#include <setjmp.h>
 #include "kern_util.h"
-#include "user_util.h"
 #include "os.h"
 #include "mode.h"
 #include "longjmp.h"
 
 void usr2_handler(int sig, union uml_pt_regs *regs)
 {
-       CHOOSE_MODE(syscall_handler_tt(sig, regs), (void) 0);
 }
 
+/* Initialized from linux_main() */
 void (*sig_info[NSIG])(int, union uml_pt_regs *);
 
 void os_fill_handlinfo(struct kern_handlers h)
@@ -35,7 +33,7 @@ void os_fill_handlinfo(struct kern_handlers h)
 
 void do_longjmp(void *b, int val)
 {
-       sigjmp_buf *buf = b;
+       jmp_buf *buf = b;
 
-       UML_SIGLONGJMP(buf, val);
+       UML_LONGJMP(buf, val);
 }