ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/mmu.h @ 13341:3040ba0f2d3d

When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.

Signed-off-by: John Levon <john.levon@sun.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Jan 09 13:24:45 2007 +0000 (2007-01-09)
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