4 #include <linux/spinlock.h>
5 #include <asm/semaphore.h>
8 * The x86_64 doesn't have a mmu context, but
9 * we put the segment information here.
11 * cpu_vm_mask is used to optimize ldt flushing.
20 unsigned has_foreign_mappings:1;
21 struct list_head unpinned;
26 extern struct list_head mm_unpinned;
27 extern spinlock_t mm_unpinned_lock;
29 /* mm/memory.c:exit_mmap hook */
30 extern void _arch_exit_mmap(struct mm_struct *mm);
31 #define arch_exit_mmap(_mm) _arch_exit_mmap(_mm)
33 /* kernel/fork.c:dup_mmap hook */
34 extern void _arch_dup_mmap(struct mm_struct *mm);
35 #define arch_dup_mmap(mm, oldmm) ((void)(oldmm), _arch_dup_mmap(mm))