ia64/xen-unstable

changeset 15597:f479595a3c5c

x86/32: Limit bootstrap 1:1 mapping to 1GB.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Jul 13 15:42:27 2007 +0100 (2007-07-13)
parents 8b4518a6f815
children 5055b8462455
files xen/arch/x86/setup.c
line diff
     1.1 --- a/xen/arch/x86/setup.c	Fri Jul 13 13:49:08 2007 +0100
     1.2 +++ b/xen/arch/x86/setup.c	Fri Jul 13 15:42:27 2007 +0100
     1.3 @@ -37,10 +37,10 @@
     1.4  #include <asm/edd.h>
     1.5  
     1.6  #if defined(CONFIG_X86_64)
     1.7 -#define BOOTSTRAP_DIRECTMAP_END (1UL << 32)
     1.8 +#define BOOTSTRAP_DIRECTMAP_END (1UL << 32) /* 4GB */
     1.9  #define maddr_to_bootstrap_virt(m) maddr_to_virt(m)
    1.10  #else
    1.11 -#define BOOTSTRAP_DIRECTMAP_END HYPERVISOR_VIRT_START
    1.12 +#define BOOTSTRAP_DIRECTMAP_END (1UL << 30) /* 1GB */
    1.13  #define maddr_to_bootstrap_virt(m) ((void *)(long)(m))
    1.14  #endif
    1.15