[LINUX][PAE] Fix e820 setup for PAE guests: preserve high-order bits of max_pfn.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-06-15 13:30:35 +01:00
1 parent 89f1d989d2
commit 1bf1344c7c
1 file changed
+2 -2
@@ -25,9 +25,9 @@ static char * __init machine_specific_memory_setup(void)
if ( rc == -ENOSYS ) {
memmap.nr_entries = 1;
map[0].addr = 0ULL;
map[0].size = xen_start_info->nr_pages << PAGE_SHIFT;
map[0].size = PFN_PHYS(xen_start_info->nr_pages);
/* 8MB slack (to balance backend allocations). */
map[0].size += 8 << 20;
map[0].size += 8ULL << 20;
map[0].type = E820_RAM;
rc = 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.