ia64/xen-unstable

changeset 10413:73c73fb8875c

[LINUX][PAE] Fix e820 setup for PAE guests: preserve high-order bits of max_pfn.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Jun 15 13:30:35 2006 +0100 (2006-06-15)
parents a1c0c1e797a6
children fbc0e953732e 231e07e22f9c
files linux-2.6-xen-sparse/include/asm-i386/mach-xen/setup_arch_post.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/setup_arch_post.h	Thu Jun 15 13:20:43 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/setup_arch_post.h	Thu Jun 15 13:30:35 2006 +0100
     1.3 @@ -25,9 +25,9 @@ static char * __init machine_specific_me
     1.4  	if ( rc == -ENOSYS ) {
     1.5  		memmap.nr_entries = 1;
     1.6  		map[0].addr = 0ULL;
     1.7 -		map[0].size = xen_start_info->nr_pages << PAGE_SHIFT;
     1.8 +		map[0].size = PFN_PHYS(xen_start_info->nr_pages);
     1.9  		/* 8MB slack (to balance backend allocations). */
    1.10 -		map[0].size += 8 << 20;
    1.11 +		map[0].size += 8ULL << 20;
    1.12  		map[0].type = E820_RAM;
    1.13  		rc = 0;
    1.14  	}