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 init_idle_skas(void);
22 extern void flush_tlb_kernel_range_skas(unsigned long start
,
24 extern void flush_tlb_kernel_vm_skas(void);
25 extern void __flush_tlb_one_skas(unsigned long addr
);
26 extern void flush_tlb_range_skas(struct vm_area_struct
*vma
,
27 unsigned long start
, unsigned long end
);
28 extern void flush_tlb_mm_skas(struct mm_struct
*mm
);
29 extern void force_flush_all_skas(void);
30 extern long execute_syscall_skas(void *r
);
31 extern void before_mem_skas(unsigned long unused
);
32 extern unsigned long set_task_sizes_skas(unsigned long *task_size_out
);
33 extern int start_uml_skas(void);
34 extern int external_pid_skas(struct task_struct
*task
);
35 extern int thread_pid_skas(struct task_struct
*task
);
37 #define kmem_end_skas (host_task_size - 1024 * 1024)