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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h
index 4c362458052c..6f766e1faecc 100644
--- a/arch/um/include/os.h
+++ b/arch/um/include/os.h
@@ -157,6 +157,13 @@ extern int os_lock_file(int fd, int excl);
157extern void os_early_checks(void); 157extern void os_early_checks(void);
158extern int can_do_skas(void); 158extern int can_do_skas(void);
159 159
160/* Make sure they are clear when running in TT mode. Required by
161 * SEGV_MAYBE_FIXABLE */
162#define clear_can_do_skas() do { ptrace_faultinfo = proc_mm = 0; } while (0)
163
164/* mem.c */
165extern int create_mem_file(unsigned long len);
166
160/* process.c */ 167/* process.c */
161extern unsigned long os_process_pc(int pid); 168extern unsigned long os_process_pc(int pid);
162extern int os_process_parent(int pid); 169extern int os_process_parent(int pid);
@@ -181,6 +188,8 @@ extern unsigned long long os_usecs(void);
181/* tt.c 188/* tt.c
182 * for tt mode only (will be deleted in future...) 189 * for tt mode only (will be deleted in future...)
183 */ 190 */
191extern int protect_memory(unsigned long addr, unsigned long len,
192 int r, int w, int x, int must_succeed);
184extern void forward_pending_sigio(int target); 193extern void forward_pending_sigio(int target);
185extern int start_fork_tramp(void *arg, unsigned long temp_stack, 194extern int start_fork_tramp(void *arg, unsigned long temp_stack,
186 int clone_flags, int (*tramp)(void *)); 195 int clone_flags, int (*tramp)(void *));