X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-i386%2Fmmu.h;h=bbb4ff3d25f22dd9ef25cdc7fd5c77e518b5601a;hb=refs%2Fheads%2Fvserver;hp=f431a0b86d4c46669e49b0fe4811a64017a27385;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/include/asm-i386/mmu.h b/include/asm-i386/mmu.h index f431a0b86..bbb4ff3d2 100644 --- a/include/asm-i386/mmu.h +++ b/include/asm-i386/mmu.h @@ -7,11 +7,29 @@ * we put the segment information here. * * cpu_vm_mask is used to optimize ldt flushing. + * exec_limit is used to track the range PROT_EXEC + * mappings span. */ typedef struct { int size; struct semaphore sem; void *ldt; + struct desc_struct user_cs; + unsigned long exec_limit; + void *vdso; +#ifdef CONFIG_XEN + int has_foreign_mappings; +#endif } mm_context_t; +#ifdef CONFIG_XEN +/* mm/memory.c:exit_mmap hook */ +extern void _arch_exit_mmap(struct mm_struct *mm); +#define arch_exit_mmap(_mm) _arch_exit_mmap(_mm) + +/* kernel/fork.c:dup_mmap hook */ +extern void _arch_dup_mmap(struct mm_struct *mm); +#define arch_dup_mmap(mm, oldmm) ((void)(oldmm), _arch_dup_mmap(mm)) +#endif /* CONFIG_XEN */ + #endif