Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750877AbWCVGjL (ORCPT ); Wed, 22 Mar 2006 01:39:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750924AbWCVGiz (ORCPT ); Wed, 22 Mar 2006 01:38:55 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:61056 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S1750877AbWCVGiJ (ORCPT ); Wed, 22 Mar 2006 01:38:09 -0500 Message-Id: <20060322063747.636585000@sorel.sous-sol.org> References: <20060322063040.960068000@sorel.sous-sol.org> Date: Tue, 21 Mar 2006 22:30:49 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org Cc: xen-devel@lists.xensource.com, virtualization@lists.osdl.org, Ian Pratt , Christian Limpach Subject: [RFC PATCH 09/35] Change __FIXADDR_TOP to leave room for the hypervisor. Content-Disposition: inline; filename=08-i386-fixmap Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1988 Lines: 65 Move the definition of __FIXADDR_TOP into a subarch include file so that it can be overridden for subarch xen -- the hypervisor needs about 64MB at the top of the address space. Signed-off-by: Ian Pratt Signed-off-by: Christian Limpach Signed-off-by: Chris Wright --- include/asm-i386/fixmap.h | 8 +------- include/asm-i386/mach-default/mach_fixmap.h | 11 +++++++++++ include/asm-i386/mach-xen/mach_fixmap.h | 11 +++++++++++ 3 files changed, 23 insertions(+), 7 deletions(-) --- xen-subarch-2.6.orig/include/asm-i386/fixmap.h +++ xen-subarch-2.6/include/asm-i386/fixmap.h @@ -14,13 +14,7 @@ #define _ASM_FIXMAP_H #include - -/* used by vmalloc.c, vsyscall.lds.S. - * - * Leave one empty page between vmalloc'ed areas and - * the start of the fixmap. - */ -#define __FIXADDR_TOP 0xfffff000 +#include #ifndef __ASSEMBLY__ #include --- /dev/null +++ xen-subarch-2.6/include/asm-i386/mach-default/mach_fixmap.h @@ -0,0 +1,11 @@ +#ifndef __ASM_MACH_FIXMAP_H +#define __ASM_MACH_FIXMAP_H + +/* used by vmalloc.c, vsyscall.lds.S. + * + * Leave one empty page between vmalloc'ed areas and + * the start of the fixmap. + */ +#define __FIXADDR_TOP 0xfffff000 + +#endif /* __ASM_MACH_FIXMAP_H */ --- /dev/null +++ xen-subarch-2.6/include/asm-i386/mach-xen/mach_fixmap.h @@ -0,0 +1,11 @@ +#ifndef __ASM_MACH_FIXMAP_H +#define __ASM_MACH_FIXMAP_H + +/* used by vmalloc.c, vsyscall.lds.S. + * + * Leave one empty page between vmalloc'ed areas and + * the start of the fixmap. + */ +#define __FIXADDR_TOP (HYPERVISOR_VIRT_START - 2 * PAGE_SIZE) + +#endif /* __ASM_MACH_FIXMAP_H */ -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/