diff options
Diffstat (limited to 'arch/um/include/kern_util.h')
-rw-r--r-- | arch/um/include/kern_util.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h index e5fec5570199..8f4e46d677ab 100644 --- a/arch/um/include/kern_util.h +++ b/arch/um/include/kern_util.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) | 2 | * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) |
3 | * Licensed under the GPL | 3 | * Licensed under the GPL |
4 | */ | 4 | */ |
@@ -10,6 +10,19 @@ | |||
10 | #include "sysdep/ptrace.h" | 10 | #include "sysdep/ptrace.h" |
11 | #include "sysdep/faultinfo.h" | 11 | #include "sysdep/faultinfo.h" |
12 | 12 | ||
13 | typedef void (*kern_hndl)(int, union uml_pt_regs *); | ||
14 | |||
15 | struct kern_handlers { | ||
16 | kern_hndl relay_signal; | ||
17 | kern_hndl winch; | ||
18 | kern_hndl bus_handler; | ||
19 | kern_hndl page_fault; | ||
20 | kern_hndl sigio_handler; | ||
21 | kern_hndl timer_handler; | ||
22 | }; | ||
23 | |||
24 | extern struct kern_handlers handlinfo_kern; | ||
25 | |||
13 | extern int ncpus; | 26 | extern int ncpus; |
14 | extern char *linux_prog; | 27 | extern char *linux_prog; |
15 | extern char *gdb_init; | 28 | extern char *gdb_init; |
@@ -51,8 +64,6 @@ extern void timer_handler(int sig, union uml_pt_regs *regs); | |||
51 | extern int set_signals(int enable); | 64 | extern int set_signals(int enable); |
52 | extern void force_sigbus(void); | 65 | extern void force_sigbus(void); |
53 | extern int pid_to_processor_id(int pid); | 66 | extern int pid_to_processor_id(int pid); |
54 | extern void block_signals(void); | ||
55 | extern void unblock_signals(void); | ||
56 | extern void deliver_signals(void *t); | 67 | extern void deliver_signals(void *t); |
57 | extern int next_syscall_index(int max); | 68 | extern int next_syscall_index(int max); |
58 | extern int next_trap_index(int max); | 69 | extern int next_trap_index(int max); |
@@ -111,6 +122,8 @@ extern void arch_switch(void); | |||
111 | extern void free_irq(unsigned int, void *); | 122 | extern void free_irq(unsigned int, void *); |
112 | extern int um_in_interrupt(void); | 123 | extern int um_in_interrupt(void); |
113 | extern int cpu(void); | 124 | extern int cpu(void); |
125 | extern void segv_handler(int sig, union uml_pt_regs *regs); | ||
126 | extern void sigio_handler(int sig, union uml_pt_regs *regs); | ||
114 | 127 | ||
115 | #endif | 128 | #endif |
116 | 129 | ||