ia64/xen-unstable

changeset 17674:e66aefdfedcc

x86: Fix kexec reservation

The reservation of space for the kexec area in
kexec_reserve_area is incorrect. It specifies the
start address and size to reserve_e820_mem when
the args should be start and end.

Bug found and fixed by Dave Anderson.

Signed-off-by: Bill Burns <bburns@redhat.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon May 19 09:43:42 2008 +0100 (2008-05-19)
parents f34f771f9ddd
children 8dce20be0bd5
files xen/arch/x86/setup.c
line diff
     1.1 --- a/xen/arch/x86/setup.c	Mon May 19 09:42:18 2008 +0100
     1.2 +++ b/xen/arch/x86/setup.c	Mon May 19 09:43:42 2008 +0100
     1.3 @@ -362,7 +362,7 @@ void __init kexec_reserve_area(struct e8
     1.4  
     1.5      is_reserved = 1;
     1.6  
     1.7 -    if ( !reserve_e820_ram(e820, kdump_start, kdump_size) )
     1.8 +    if ( !reserve_e820_ram(e820, kdump_start, kdump_start + kdump_size) )
     1.9      {
    1.10          printk("Kdump: DISABLED (failed to reserve %luMB (%lukB) at 0x%lx)"
    1.11                 "\n", kdump_size >> 20, kdump_size >> 10, kdump_start);