Merge acpi-2.6.12 to-akpm
[sfrench/cifs-2.6.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 int map(struct mm_id * mm_idp, unsigned long virt, unsigned long len,
28                int r, int w, int x, int phys_fd, unsigned long long offset);
29 extern int unmap(struct mm_id * mm_idp, void *addr, unsigned long len);
30 extern int protect(struct mm_id * mm_idp, unsigned long addr,
31                    unsigned long len, int r, int w, int x);
32 extern void user_signal(int sig, union uml_pt_regs *regs, int pid);
33 extern int new_mm(int from);
34 extern int start_userspace(unsigned long stub_stack);
35 extern int copy_context_skas0(unsigned long stack, int pid);
36 extern void get_skas_faultinfo(int pid, struct faultinfo * fi);
37 extern long execute_syscall_skas(void *r);
38 extern unsigned long current_stub_stack(void);
39
40 #endif
41
42 /*
43  * Overrides for Emacs so that we follow Linus's tabbing style.
44  * Emacs will notice this stuff at the end of the file and automatically
45  * adjust the settings for this buffer only.  This must remain at the end
46  * of the file.
47  * ---------------------------------------------------------------------------
48  * Local variables:
49  * c-file-style: "linux"
50  * End:
51  */