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