diff options
Diffstat (limited to 'arch/um/include/os.h')
-rw-r--r-- | arch/um/include/os.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index 24fb6d8680e1..120ca21a513a 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #include "skas/mm_id.h" | 14 | #include "skas/mm_id.h" |
15 | #include "irq_user.h" | 15 | #include "irq_user.h" |
16 | #include "sysdep/tls.h" | 16 | #include "sysdep/tls.h" |
17 | #include "sysdep/archsetjmp.h" | ||
17 | 18 | ||
18 | #define OS_TYPE_FILE 1 | 19 | #define OS_TYPE_FILE 1 |
19 | #define OS_TYPE_DIR 2 | 20 | #define OS_TYPE_DIR 2 |
@@ -198,7 +199,9 @@ extern long os_ptrace_ldt(long pid, long addr, long data); | |||
198 | extern int os_getpid(void); | 199 | extern int os_getpid(void); |
199 | extern int os_getpgrp(void); | 200 | extern int os_getpgrp(void); |
200 | 201 | ||
202 | #ifdef UML_CONFIG_MODE_TT | ||
201 | extern void init_new_thread_stack(void *sig_stack, void (*usr1_handler)(int)); | 203 | extern void init_new_thread_stack(void *sig_stack, void (*usr1_handler)(int)); |
204 | #endif | ||
202 | extern void init_new_thread_signals(void); | 205 | extern void init_new_thread_signals(void); |
203 | extern int run_kernel_thread(int (*fn)(void *), void *arg, void **jmp_ptr); | 206 | extern int run_kernel_thread(int (*fn)(void *), void *arg, void **jmp_ptr); |
204 | 207 | ||
@@ -216,7 +219,6 @@ extern void os_flush_stdout(void); | |||
216 | */ | 219 | */ |
217 | extern void forward_ipi(int fd, int pid); | 220 | extern void forward_ipi(int fd, int pid); |
218 | extern void kill_child_dead(int pid); | 221 | extern void kill_child_dead(int pid); |
219 | extern void stop(void); | ||
220 | extern int wait_for_stop(int pid, int sig, int cont_type, void *relay); | 222 | extern int wait_for_stop(int pid, int sig, int cont_type, void *relay); |
221 | extern int protect_memory(unsigned long addr, unsigned long len, | 223 | extern int protect_memory(unsigned long addr, unsigned long len, |
222 | int r, int w, int x, int must_succeed); | 224 | int r, int w, int x, int must_succeed); |
@@ -307,12 +309,9 @@ extern int copy_context_skas0(unsigned long stack, int pid); | |||
307 | extern void userspace(union uml_pt_regs *regs); | 309 | extern void userspace(union uml_pt_regs *regs); |
308 | extern void map_stub_pages(int fd, unsigned long code, | 310 | extern void map_stub_pages(int fd, unsigned long code, |
309 | unsigned long data, unsigned long stack); | 311 | unsigned long data, unsigned long stack); |
310 | extern void new_thread(void *stack, void **switch_buf_ptr, | 312 | extern void new_thread(void *stack, jmp_buf *buf, void (*handler)(void)); |
311 | void **fork_buf_ptr, void (*handler)(int)); | 313 | extern void switch_threads(jmp_buf *me, jmp_buf *you); |
312 | extern void thread_wait(void *sw, void *fb); | 314 | extern int start_idle_thread(void *stack, jmp_buf *switch_buf); |
313 | extern void switch_threads(void *me, void *next); | ||
314 | extern int start_idle_thread(void *stack, void *switch_buf_ptr, | ||
315 | void **fork_buf_ptr); | ||
316 | extern void initial_thread_cb_skas(void (*proc)(void *), | 315 | extern void initial_thread_cb_skas(void (*proc)(void *), |
317 | void *arg); | 316 | void *arg); |
318 | extern void halt_skas(void); | 317 | extern void halt_skas(void); |