This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-i386 / mach-xen / asm / mmu.h
1 #ifndef __i386_MMU_H
2 #define __i386_MMU_H
3
4 #include <asm/semaphore.h>
5 /*
6  * The i386 doesn't have a mmu context, but
7  * we put the segment information here.
8  *
9  * cpu_vm_mask is used to optimize ldt flushing.
10  +
11  * exec_limit is used to track the range PROT_EXEC
12  * mappings span.
13  */
14 typedef struct { 
15         int size;
16         struct semaphore sem;
17         void *ldt;
18         struct desc_struct user_cs;
19         unsigned long exec_limit;
20         void *vdso;
21 #ifdef CONFIG_XEN
22         int has_foreign_mappings;
23 #endif
24 } mm_context_t;
25
26 /* mm/memory.c:exit_mmap hook */
27 extern void _arch_exit_mmap(struct mm_struct *mm);
28 #define arch_exit_mmap(_mm) _arch_exit_mmap(_mm)
29
30 /* kernel/fork.c:dup_mmap hook */
31 extern void _arch_dup_mmap(struct mm_struct *mm);
32 #define arch_dup_mmap(mm, oldmm) ((void)(oldmm), _arch_dup_mmap(mm))
33
34 #endif