initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / um / kernel / skas / include / skas.h
blob0bbc97540815ec456d0de555a7545e8f78001045
1 /*
2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #ifndef __SKAS_H
7 #define __SKAS_H
9 #include "sysdep/ptrace.h"
11 extern int userspace_pid[];
13 extern void switch_threads(void *me, void *next);
14 extern void thread_wait(void *sw, void *fb);
15 extern void new_thread(void *stack, void **switch_buf_ptr, void **fork_buf_ptr,
16 void (*handler)(int));
17 extern int start_idle_thread(void *stack, void *switch_buf_ptr,
18 void **fork_buf_ptr);
19 extern int user_thread(unsigned long stack, int flags);
20 extern void userspace(union uml_pt_regs *regs);
21 extern void new_thread_proc(void *stack, void (*handler)(int sig));
22 extern void remove_sigstack(void);
23 extern void new_thread_handler(int sig);
24 extern void handle_syscall(union uml_pt_regs *regs);
25 extern void map(int fd, unsigned long virt, unsigned long phys,
26 unsigned long len, int r, int w, int x);
27 extern int unmap(int fd, void *addr, int len);
28 extern int protect(int fd, unsigned long addr, unsigned long len,
29 int r, int w, int x, int must_succeed);
30 extern void user_signal(int sig, union uml_pt_regs *regs);
31 extern int singlestepping_skas(void);
32 extern int new_mm(int from);
33 extern void save_registers(union uml_pt_regs *regs);
34 extern void restore_registers(union uml_pt_regs *regs);
35 extern void start_userspace(int cpu);
36 extern void init_registers(int pid);
38 #endif
41 * Overrides for Emacs so that we follow Linus's tabbing style.
42 * Emacs will notice this stuff at the end of the file and automatically
43 * adjust the settings for this buffer only. This must remain at the end
44 * of the file.
45 * ---------------------------------------------------------------------------
46 * Local variables:
47 * c-file-style: "linux"
48 * End: