aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/os.h')
-rw-r--r--arch/um/include/os.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h
index c0803e67fc67..208d9b91fc93 100644
--- a/arch/um/include/os.h
+++ b/arch/um/include/os.h
@@ -178,11 +178,7 @@ extern void check_host_supports_tls(int *supports_tls, int *tls_min);
178 178
179/* Make sure they are clear when running in TT mode. Required by 179/* Make sure they are clear when running in TT mode. Required by
180 * SEGV_MAYBE_FIXABLE */ 180 * SEGV_MAYBE_FIXABLE */
181#ifdef UML_CONFIG_MODE_SKAS
182#define clear_can_do_skas() do { ptrace_faultinfo = proc_mm = 0; } while (0) 181#define clear_can_do_skas() do { ptrace_faultinfo = proc_mm = 0; } while (0)
183#else
184#define clear_can_do_skas() do {} while (0)
185#endif
186 182
187/* mem.c */ 183/* mem.c */
188extern int create_mem_file(unsigned long long len); 184extern int create_mem_file(unsigned long long len);
@@ -193,18 +189,11 @@ extern int os_process_parent(int pid);
193extern void os_stop_process(int pid); 189extern void os_stop_process(int pid);
194extern void os_kill_process(int pid, int reap_child); 190extern void os_kill_process(int pid, int reap_child);
195extern void os_kill_ptraced_process(int pid, int reap_child); 191extern void os_kill_ptraced_process(int pid, int reap_child);
196#ifdef UML_CONFIG_MODE_TT
197extern void os_usr1_process(int pid);
198#endif
199extern long os_ptrace_ldt(long pid, long addr, long data); 192extern long os_ptrace_ldt(long pid, long addr, long data);
200 193
201extern int os_getpid(void); 194extern int os_getpid(void);
202extern int os_getpgrp(void); 195extern int os_getpgrp(void);
203 196
204#ifdef UML_CONFIG_MODE_TT
205extern void init_new_thread_stack(void *sig_stack, void (*usr1_handler)(int));
206extern void stop(void);
207#endif
208extern void init_new_thread_signals(void); 197extern void init_new_thread_signals(void);
209extern int run_kernel_thread(int (*fn)(void *), void *arg, void **jmp_ptr); 198extern int run_kernel_thread(int (*fn)(void *), void *arg, void **jmp_ptr);
210 199
@@ -217,18 +206,6 @@ extern int os_drop_memory(void *addr, int length);
217extern int can_drop_memory(void); 206extern int can_drop_memory(void);
218extern void os_flush_stdout(void); 207extern void os_flush_stdout(void);
219 208
220/* tt.c
221 * for tt mode only (will be deleted in future...)
222 */
223extern void forward_ipi(int fd, int pid);
224extern void kill_child_dead(int pid);
225extern int wait_for_stop(int pid, int sig, int cont_type, void *relay);
226extern int protect_memory(unsigned long addr, unsigned long len,
227 int r, int w, int x, int must_succeed);
228extern void forward_pending_sigio(int target);
229extern int start_fork_tramp(void *arg, unsigned long temp_stack,
230 int clone_flags, int (*tramp)(void *));
231
232/* uaccess.c */ 209/* uaccess.c */
233extern unsigned long __do_user_copy(void *to, const void *from, int n, 210extern unsigned long __do_user_copy(void *to, const void *from, int n,
234 void **fault_addr, void **fault_catcher, 211 void **fault_addr, void **fault_catcher,
@@ -281,9 +258,6 @@ extern void os_dump_core(void);
281extern void switch_timers(int to_real); 258extern void switch_timers(int to_real);
282extern void idle_sleep(int secs); 259extern void idle_sleep(int secs);
283extern int set_interval(int is_virtual); 260extern int set_interval(int is_virtual);
284#ifdef CONFIG_MODE_TT
285extern void enable_timer(void);
286#endif
287extern void disable_timer(void); 261extern void disable_timer(void);
288extern void uml_idle_timer(void); 262extern void uml_idle_timer(void);
289extern unsigned long long os_nsecs(void); 263extern unsigned long long os_nsecs(void);