[PATCH] uml: increase granularity of host capability checking
[linux-2.6-microblaze.git] / arch / um / kernel / skas / include / skas.h
1 /* 
2  * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3  * Licensed under the GPL
4  */
5
6 #ifndef __SKAS_H
7 #define __SKAS_H
8
9 #include "mm_id.h"
10 #include "sysdep/ptrace.h"
11
12 extern int userspace_pid[];
13 extern int proc_mm, ptrace_faultinfo;
14
15 extern void switch_threads(void *me, void *next);
16 extern void thread_wait(void *sw, void *fb);
17 extern void new_thread(void *stack, void **switch_buf_ptr, void **fork_buf_ptr,
18                        void (*handler)(int));
19 extern int start_idle_thread(void *stack, void *switch_buf_ptr, 
20                              void **fork_buf_ptr);
21 extern int user_thread(unsigned long stack, int flags);
22 extern void userspace(union uml_pt_regs *regs);
23 extern void new_thread_proc(void *stack, void (*handler)(int sig));
24 extern void remove_sigstack(void);
25 extern void new_thread_handler(int sig);
26 extern void handle_syscall(union uml_pt_regs *regs);
27 extern void *map(struct mm_id * mm_idp, unsigned long virt,
28                  unsigned long len, int r, int w, int x, int phys_fd,
29                  unsigned long long offset, int done, void *data);
30 extern void *unmap(struct mm_id * mm_idp, void *addr,
31                    unsigned long len, int done, void *data);
32 extern void *protect(struct mm_id * mm_idp, unsigned long addr,
33                      unsigned long len, int r, int w, int x, int done,
34                      void *data);
35 extern void user_signal(int sig, union uml_pt_regs *regs, int pid);
36 extern int new_mm(int from, unsigned long stack);
37 extern int start_userspace(unsigned long stub_stack);
38 extern int copy_context_skas0(unsigned long stack, int pid);
39 extern void get_skas_faultinfo(int pid, struct faultinfo * fi);
40 extern long execute_syscall_skas(void *r);
41 extern unsigned long current_stub_stack(void);
42
43 #endif
44
45 /*
46  * Overrides for Emacs so that we follow Linus's tabbing style.
47  * Emacs will notice this stuff at the end of the file and automatically
48  * adjust the settings for this buffer only.  This must remain at the end
49  * of the file.
50  * ---------------------------------------------------------------------------
51  * Local variables:
52  * c-file-style: "linux"
53  * End:
54  */