From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932143AbWGRJVc (ORCPT ); Tue, 18 Jul 2006 05:21:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932134AbWGRJVI (ORCPT ); Tue, 18 Jul 2006 05:21:08 -0400 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:28802 "EHLO sous-sol.org") by vger.kernel.org with ESMTP id S932110AbWGRJUW (ORCPT ); Tue, 18 Jul 2006 05:20:22 -0400 Message-Id: <20060718091951.477119000@sous-sol.org> References: <20060718091807.467468000@sous-sol.org> User-Agent: quilt/0.45-1 Date: Tue, 18 Jul 2006 00:00:12 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org Cc: virtualization@lists.osdl.org, xen-devel@lists.xensource.com, Jeremy Fitzhardinge , Andi Kleen , Andrew Morton , Rusty Russell , Zachary Amsden , Ian Pratt , Christian Limpach Subject: [RFC PATCH 12/33] Change __FIXADDR_TOP to leave room for the hypervisor. Content-Disposition: inline; filename=i386-fixmap Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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(-) diff -r 1c88b225d413 include/asm-i386/fixmap.h --- a/include/asm-i386/fixmap.h Thu Jun 22 16:02:54 2006 -0400 +++ b/include/asm-i386/fixmap.h Thu Jun 22 16:05:56 2006 -0400 @@ -13,13 +13,7 @@ #ifndef _ASM_FIXMAP_H #define _ASM_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 +#include #ifndef __ASSEMBLY__ #include diff -r 1c88b225d413 include/asm-i386/mach-default/mach_fixmap.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/asm-i386/mach-default/mach_fixmap.h Thu Jun 22 16:05:56 2006 -0400 @@ -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 */ diff -r 1c88b225d413 include/asm-i386/mach-xen/mach_fixmap.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/asm-i386/mach-xen/mach_fixmap.h Thu Jun 22 16:05:56 2006 -0400 @@ -0,0 +1,13 @@ +#ifndef __ASM_MACH_FIXMAP_H +#define __ASM_MACH_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 (HYPERVISOR_VIRT_START - 2 * PAGE_SIZE) + +#endif /* __ASM_MACH_FIXMAP_H */ --