uml: kernel_thread shouldn't panic
[pv_ops_mirror.git] / arch / um / include / tt / tt.h
blobacb8356e1f9839ff67435af56f39ebe17b4ab00b
1 /*
2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #ifndef __TT_H__
7 #define __TT_H__
9 #include "sysdep/ptrace.h"
11 extern int gdb_pid;
12 extern int debug;
13 extern int debug_stop;
14 extern int debug_trace;
16 extern int honeypot;
18 extern int fork_tramp(void *sig_stack);
19 extern int do_proc_op(void *t, int proc_id);
20 extern int tracer(int (*init_proc)(void *), void *sp);
21 extern void attach_process(int pid);
22 extern void tracer_panic(char *format, ...)
23 __attribute__ ((format (printf, 1, 2)));
24 extern void set_init_pid(int pid);
25 extern int set_user_mode(void *task);
26 extern void set_tracing(void *t, int tracing);
27 extern int is_tracing(void *task);
28 extern void syscall_handler(int sig, union uml_pt_regs *regs);
29 extern void exit_kernel(int pid, void *task);
30 extern void do_syscall(void *task, int pid, int local_using_sysemu);
31 extern void do_sigtrap(void *task);
32 extern int is_valid_pid(int pid);
33 extern void remap_data(void *segment_start, void *segment_end, int w);
34 extern long execute_syscall_tt(void *r);
36 #endif