2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #ifndef __SKAS_MODE_KERN_H__
7 #define __SKAS_MODE_KERN_H__
9 #include "linux/sched.h"
11 #include "asm/ptrace.h"
13 extern void flush_thread_skas(void);
14 extern void *switch_to_skas(void *prev
, void *next
);
15 extern void start_thread_skas(struct pt_regs
*regs
, unsigned long eip
,
17 extern int copy_thread_skas(int nr
, unsigned long clone_flags
,
18 unsigned long sp
, unsigned long stack_top
,
19 struct task_struct
*p
, struct pt_regs
*regs
);
20 extern void release_thread_skas(struct task_struct
*task
);
21 extern void initial_thread_cb_skas(void (*proc
)(void *), void *arg
);
22 extern void init_idle_skas(void);
23 extern void flush_tlb_kernel_range_skas(unsigned long start
,
25 extern void flush_tlb_kernel_vm_skas(void);
26 extern void __flush_tlb_one_skas(unsigned long addr
);
27 extern void flush_tlb_range_skas(struct vm_area_struct
*vma
,
28 unsigned long start
, unsigned long end
);
29 extern void flush_tlb_mm_skas(struct mm_struct
*mm
);
30 extern void force_flush_all_skas(void);
31 extern long execute_syscall_skas(void *r
);
32 extern void before_mem_skas(unsigned long unused
);
33 extern unsigned long set_task_sizes_skas(int arg
, unsigned long *host_size_out
,
34 unsigned long *task_size_out
);
35 extern int start_uml_skas(void);
36 extern int external_pid_skas(struct task_struct
*task
);
37 extern int thread_pid_skas(struct task_struct
*task
);
39 #define kmem_end_skas (host_task_size - 1024 * 1024)
44 * Overrides for Emacs so that we follow Linus's tabbing style.
45 * Emacs will notice this stuff at the end of the file and automatically
46 * adjust the settings for this buffer only. This must remain at the end
48 * ---------------------------------------------------------------------------
50 * c-file-style: "linux"