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.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h
index 624938ad9e14..8006e085b675 100644
--- a/arch/um/include/os.h
+++ b/arch/um/include/os.h
@@ -11,6 +11,7 @@
11#include "../os/include/file.h" 11#include "../os/include/file.h"
12#include "sysdep/ptrace.h" 12#include "sysdep/ptrace.h"
13#include "kern_util.h" 13#include "kern_util.h"
14#include "skas/mm_id.h"
14 15
15#define OS_TYPE_FILE 1 16#define OS_TYPE_FILE 1
16#define OS_TYPE_DIR 2 17#define OS_TYPE_DIR 2
@@ -255,4 +256,20 @@ extern void user_time_init(void);
255extern void uml_idle_timer(void); 256extern void uml_idle_timer(void);
256extern unsigned long long os_nsecs(void); 257extern unsigned long long os_nsecs(void);
257 258
259/* skas/mem.c */
260extern long run_syscall_stub(struct mm_id * mm_idp,
261 int syscall, unsigned long *args, long expected,
262 void **addr, int done);
263extern long syscall_stub_data(struct mm_id * mm_idp,
264 unsigned long *data, int data_count,
265 void **addr, void **stub_addr);
266extern int map(struct mm_id * mm_idp, unsigned long virt,
267 unsigned long len, int r, int w, int x, int phys_fd,
268 unsigned long long offset, int done, void **data);
269extern int unmap(struct mm_id * mm_idp, void *addr, unsigned long len,
270 int done, void **data);
271extern int protect(struct mm_id * mm_idp, unsigned long addr,
272 unsigned long len, int r, int w, int x, int done,
273 void **data);
274
258#endif 275#endif