aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/kern_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/kern_util.h')
-rw-r--r--arch/um/include/kern_util.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h
index 173af029d12b..50a49691e0e6 100644
--- a/arch/um/include/kern_util.h
+++ b/arch/um/include/kern_util.h
@@ -8,6 +8,7 @@
8 8
9#include "sysdep/ptrace.h" 9#include "sysdep/ptrace.h"
10#include "sysdep/faultinfo.h" 10#include "sysdep/faultinfo.h"
11#include "uml-config.h"
11 12
12typedef void (*kern_hndl)(int, union uml_pt_regs *); 13typedef void (*kern_hndl)(int, union uml_pt_regs *);
13 14
@@ -23,7 +24,6 @@ struct kern_handlers {
23extern const struct kern_handlers handlinfo_kern; 24extern const struct kern_handlers handlinfo_kern;
24 25
25extern int ncpus; 26extern int ncpus;
26extern char *linux_prog;
27extern char *gdb_init; 27extern char *gdb_init;
28extern int kmalloc_ok; 28extern int kmalloc_ok;
29extern int jail; 29extern int jail;
@@ -34,7 +34,9 @@ extern int nsyscalls;
34 UML_ROUND_DOWN(((unsigned long) addr) + PAGE_SIZE - 1) 34 UML_ROUND_DOWN(((unsigned long) addr) + PAGE_SIZE - 1)
35 35
36extern int kernel_fork(unsigned long flags, int (*fn)(void *), void * arg); 36extern int kernel_fork(unsigned long flags, int (*fn)(void *), void * arg);
37#ifdef UML_CONFIG_MODE_TT
37extern unsigned long stack_sp(unsigned long page); 38extern unsigned long stack_sp(unsigned long page);
39#endif
38extern int kernel_thread_proc(void *data); 40extern int kernel_thread_proc(void *data);
39extern void syscall_segv(int sig); 41extern void syscall_segv(int sig);
40extern int current_pid(void); 42extern int current_pid(void);
@@ -42,7 +44,7 @@ extern unsigned long alloc_stack(int order, int atomic);
42extern int do_signal(void); 44extern int do_signal(void);
43extern int is_stack_fault(unsigned long sp); 45extern int is_stack_fault(unsigned long sp);
44extern unsigned long segv(struct faultinfo fi, unsigned long ip, 46extern unsigned long segv(struct faultinfo fi, unsigned long ip,
45 int is_user, void *sc); 47 int is_user, union uml_pt_regs *regs);
46extern int handle_page_fault(unsigned long address, unsigned long ip, 48extern int handle_page_fault(unsigned long address, unsigned long ip,
47 int is_write, int is_user, int *code_out); 49 int is_write, int is_user, int *code_out);
48extern void syscall_ready(void); 50extern void syscall_ready(void);
@@ -50,7 +52,6 @@ extern void set_tracing(void *t, int tracing);
50extern int is_tracing(void *task); 52extern int is_tracing(void *task);
51extern int segv_syscall(void); 53extern int segv_syscall(void);
52extern void kern_finish_exec(void *task, int new_pid, unsigned long stack); 54extern void kern_finish_exec(void *task, int new_pid, unsigned long stack);
53extern int page_size(void);
54extern unsigned long page_mask(void); 55extern unsigned long page_mask(void);
55extern int need_finish_fork(void); 56extern int need_finish_fork(void);
56extern void free_stack(unsigned long stack, int order); 57extern void free_stack(unsigned long stack, int order);
@@ -58,7 +59,6 @@ extern void add_input_request(int op, void (*proc)(int), void *arg);
58extern char *current_cmd(void); 59extern char *current_cmd(void);
59extern void timer_handler(int sig, union uml_pt_regs *regs); 60extern void timer_handler(int sig, union uml_pt_regs *regs);
60extern int set_signals(int enable); 61extern int set_signals(int enable);
61extern void force_sigbus(void);
62extern int pid_to_processor_id(int pid); 62extern int pid_to_processor_id(int pid);
63extern void deliver_signals(void *t); 63extern void deliver_signals(void *t);
64extern int next_trap_index(int max); 64extern int next_trap_index(int max);
@@ -70,7 +70,6 @@ extern void *syscall_sp(void *t);
70extern void syscall_trace(union uml_pt_regs *regs, int entryexit); 70extern void syscall_trace(union uml_pt_regs *regs, int entryexit);
71extern int hz(void); 71extern int hz(void);
72extern unsigned int do_IRQ(int irq, union uml_pt_regs *regs); 72extern unsigned int do_IRQ(int irq, union uml_pt_regs *regs);
73extern int external_pid(void *t);
74extern void interrupt_end(void); 73extern void interrupt_end(void);
75extern void initial_thread_cb(void (*proc)(void *), void *arg); 74extern void initial_thread_cb(void (*proc)(void *), void *arg);
76extern int debugger_signal(int status, int pid); 75extern int debugger_signal(int status, int pid);
@@ -81,7 +80,6 @@ extern int init_parent_proxy(int pid);
81extern int singlestepping(void *t); 80extern int singlestepping(void *t);
82extern void check_stack_overflow(void *ptr); 81extern void check_stack_overflow(void *ptr);
83extern void relay_signal(int sig, union uml_pt_regs *regs); 82extern void relay_signal(int sig, union uml_pt_regs *regs);
84extern void not_implemented(void);
85extern int user_context(unsigned long sp); 83extern int user_context(unsigned long sp);
86extern void timer_irq(union uml_pt_regs *regs); 84extern void timer_irq(union uml_pt_regs *regs);
87extern void unprotect_stack(unsigned long stack); 85extern void unprotect_stack(unsigned long stack);
@@ -93,7 +91,6 @@ extern char *uml_strdup(char *string);
93extern void unprotect_kernel_mem(void); 91extern void unprotect_kernel_mem(void);
94extern void protect_kernel_mem(void); 92extern void protect_kernel_mem(void);
95extern void uml_cleanup(void); 93extern void uml_cleanup(void);
96extern void set_current(void *t);
97extern void lock_signalled_task(void *t); 94extern void lock_signalled_task(void *t);
98extern void IPI_handler(int cpu); 95extern void IPI_handler(int cpu);
99extern int jail_setup(char *line, int *add); 96extern int jail_setup(char *line, int *add);
@@ -118,4 +115,6 @@ extern void time_init_kern(void);
118extern int __cant_sleep(void); 115extern int __cant_sleep(void);
119extern void sigio_handler(int sig, union uml_pt_regs *regs); 116extern void sigio_handler(int sig, union uml_pt_regs *regs);
120 117
118extern void copy_sc(union uml_pt_regs *regs, void *from);
119
121#endif 120#endif