4 #include <asm/semaphore.h>
6 * The i386 doesn't have a mmu context, but
7 * we put the segment information here.
9 * cpu_vm_mask is used to optimize ldt flushing.
11 * exec_limit is used to track the range PROT_EXEC
18 struct desc_struct user_cs;
19 unsigned long exec_limit;
22 int has_foreign_mappings;
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)
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))