ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mmu.h @ 8534:da7873110bbb

Tiny bootstrap cleanup.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jan 09 19:46:46 2006 +0100 (2006-01-09)
parents 06d84bf87159
children
line source
1 #ifndef __x86_64_MMU_H
2 #define __x86_64_MMU_H
4 #include <linux/spinlock.h>
5 #include <asm/semaphore.h>
7 /*
8 * The x86_64 doesn't have a mmu context, but
9 * we put the segment information here.
10 *
11 * cpu_vm_mask is used to optimize ldt flushing.
12 */
13 typedef struct {
14 void *ldt;
15 rwlock_t ldtlock;
16 int size;
17 struct semaphore sem;
18 #ifdef CONFIG_XEN
19 unsigned pinned:1;
20 struct list_head unpinned;
21 #endif
22 } mm_context_t;
24 #ifdef CONFIG_XEN
25 extern struct list_head mm_unpinned;
26 extern spinlock_t mm_unpinned_lock;
28 /* mm/memory.c:exit_mmap hook */
29 extern void _arch_exit_mmap(struct mm_struct *mm);
30 #define arch_exit_mmap(_mm) _arch_exit_mmap(_mm)
31 #endif
33 #endif