direct-io.hg

view linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/mmu.h @ 11509:2e6c10dc7c0b

[POWERPC][XEN] make sure put_domain() is called in case of allocate_rma() failuer

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Sep 12 10:53:46 2006 -0400 (2006-09-12)
parents e351aace191e
children 3adf00179a63
line source
1 #ifndef __i386_MMU_H
2 #define __i386_MMU_H
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 typedef struct {
12 int size;
13 struct semaphore sem;
14 void *ldt;
15 #ifdef CONFIG_XEN
16 int has_foreign_mappings;
17 #endif
18 } mm_context_t;
20 /* mm/memory.c:exit_mmap hook */
21 extern void _arch_exit_mmap(struct mm_struct *mm);
22 #define arch_exit_mmap(_mm) _arch_exit_mmap(_mm)
24 /* kernel/fork.c:dup_mmap hook */
25 extern void _arch_dup_mmap(struct mm_struct *mm);
26 #define arch_dup_mmap(mm, oldmm) ((void)(oldmm), _arch_dup_mmap(mm))
28 #endif