2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #ifndef __TT_MODE_KERN_H__
7 #define __TT_MODE_KERN_H__
9 #include "linux/sched.h"
11 #include "asm/ptrace.h"
12 #include "asm/uaccess.h"
14 extern void *switch_to_tt(void *prev, void *next);
15 extern void flush_thread_tt(void);
16 extern void start_thread_tt(struct pt_regs *regs, unsigned long eip,
18 extern int copy_thread_tt(int nr, unsigned long clone_flags, unsigned long sp,
19 unsigned long stack_top, struct task_struct *p,
20 struct pt_regs *regs);
21 extern void release_thread_tt(struct task_struct *task);
22 extern void exit_thread_tt(void);
23 extern void initial_thread_cb_tt(void (*proc)(void *), void *arg);
24 extern void init_idle_tt(void);
25 extern void flush_tlb_kernel_range_tt(unsigned long start, unsigned long end);
26 extern void flush_tlb_kernel_vm_tt(void);
27 extern void __flush_tlb_one_tt(unsigned long addr);
28 extern void flush_tlb_range_tt(struct vm_area_struct *vma,
29 unsigned long start, unsigned long end);
30 extern void flush_tlb_mm_tt(struct mm_struct *mm);
31 extern void force_flush_all_tt(void);
32 extern long execute_syscall_tt(void *r);
33 extern void before_mem_tt(unsigned long brk_start);
34 extern unsigned long set_task_sizes_tt(int arg, unsigned long *host_size_out,
35 unsigned long *task_size_out);
36 extern int start_uml_tt(void);
37 extern int external_pid_tt(struct task_struct *task);
38 extern int thread_pid_tt(struct task_struct *task);
40 #define kmem_end_tt (host_task_size - ABOVE_KMEM)
45 * Overrides for Emacs so that we follow Linus's tabbing style.
46 * Emacs will notice this stuff at the end of the file and automatically
47 * adjust the settings for this buffer only. This must remain at the end
49 * ---------------------------------------------------------------------------
51 * c-file-style: "linux"