uml: kernel_thread shouldn't panic
[pv_ops_mirror.git] / arch / um / include / tt / mode_kern_tt.h
bloba4fc63057195aaa3e0ec3260ae44e5832da7ad98
1 /*
2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #ifndef __TT_MODE_KERN_H__
7 #define __TT_MODE_KERN_H__
9 #include "linux/sched.h"
10 #include "asm/page.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,
17 unsigned long esp);
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 initial_thread_cb_tt(void (*proc)(void *), void *arg);
23 extern void init_idle_tt(void);
24 extern void flush_tlb_kernel_range_tt(unsigned long start, unsigned long end);
25 extern void flush_tlb_kernel_vm_tt(void);
26 extern void __flush_tlb_one_tt(unsigned long addr);
27 extern void flush_tlb_range_tt(struct vm_area_struct *vma,
28 unsigned long start, unsigned long end);
29 extern void flush_tlb_mm_tt(struct mm_struct *mm);
30 extern void force_flush_all_tt(void);
31 extern long execute_syscall_tt(void *r);
32 extern void before_mem_tt(unsigned long brk_start);
33 extern unsigned long set_task_sizes_tt(unsigned long *task_size_out);
34 extern int start_uml_tt(void);
35 extern int external_pid_tt(struct task_struct *task);
36 extern int thread_pid_tt(struct task_struct *task);
38 #define kmem_end_tt (host_task_size - ABOVE_KMEM)
40 #endif