[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-merge] [PATCH 10/23] mmu subarch headers
--- linux-2.6.12-xen0-arch.orig/include/asm-i386/mmu.h +++ linux-2.6.12-xen0-arch/include/asm-i386/mmu.h @@ -1,17 +1,6 @@ #ifndef __i386_MMU_H #define __i386_MMU_H -#include <asm/semaphore.h> -/* - * The i386 doesn't have a mmu context, but - * we put the segment information here. - * - * cpu_vm_mask is used to optimize ldt flushing. - */ -typedef struct { - int size; - struct semaphore sem; - void *ldt; -} mm_context_t; +#include <mach_mmu.h> #endif --- /dev/null +++ linux-2.6.12-xen0-arch/include/asm-i386/mach-default/mach_mmu.h @@ -0,0 +1,17 @@ +#ifndef __ASM_MACH_MMU_H +#define __ASM_MACH_MMU_H + +#include <asm/semaphore.h> +/* + * The i386 doesn't have a mmu context, but + * we put the segment information here. + * + * cpu_vm_mask is used to optimize ldt flushing. + */ +typedef struct { + int size; + struct semaphore sem; + void *ldt; +} mm_context_t; + +#endif --- linux-2.6.12-xen0/include/asm-i386/mach-xen/mach_mmu.h 1969-12-31 16:00:00.000000000 -0800 +++ linux-2.6.12-xen0-arch/include/asm-i386/mach-xen/mach_mmu.h 2005-08-01 23:01:51.000000000 -0700 @@ -0,0 +1,26 @@ +#ifndef __ASM_MACH_MMU_H +#define __ASM_MACH_MMU_H + +#include <asm/semaphore.h> +/* + * The i386 doesn't have a mmu context, but + * we put the segment information here. + * + * cpu_vm_mask is used to optimize ldt flushing. + */ +typedef struct { + int size; + struct semaphore sem; + void *ldt; + unsigned pinned:1; + struct list_head unpinned; +} mm_context_t; + +extern struct list_head mm_unpinned; +extern spinlock_t mm_unpinned_lock; + +/* mm/memory.c:exit_mmap hook */ +extern void _arch_exit_mmap(struct mm_struct *mm); +#define arch_exit_mmap(_mm) _arch_exit_mmap(_mm) + +#endif -- _______________________________________________ Xen-merge mailing list Xen-merge@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-merge
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |