[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEN] Extend the range returned by KEXEC_RANGE_MA_XEN to cover the
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxxxxx> # Date 1170346042 0 # Node ID 14fc88872c8476e7ee5c61ccf691765db781e79a # Parent f84ba62ca615e67f297820455c76f4a061e32490 [XEN] Extend the range returned by KEXEC_RANGE_MA_XEN to cover the heap as well as code+data. This makes kdump work again after 13546:d86a96ca47a3 Also fix sizeof_note to correctly calculate the length of the name field. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx> --- xen/common/kexec.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r f84ba62ca615 -r 14fc88872c84 xen/common/kexec.c --- a/xen/common/kexec.c Thu Feb 01 15:44:00 2007 +0000 +++ b/xen/common/kexec.c Thu Feb 01 16:07:22 2007 +0000 @@ -141,7 +141,7 @@ static int sizeof_note(const char *name, static int sizeof_note(const char *name, int descsz) { return (sizeof(Elf_Note) + - ELFNOTE_ALIGN(sizeof(name)) + + ELFNOTE_ALIGN(strlen(name)+1) + ELFNOTE_ALIGN(descsz)); } @@ -163,7 +163,7 @@ static int kexec_get(xen)(xen_kexec_rang static int kexec_get(xen)(xen_kexec_range_t *range) { range->start = virt_to_maddr(_start); - range->size = (unsigned long)_end - (unsigned long)_start; + range->size = (unsigned long)xenheap_phys_end - (unsigned long)range->start; return 0; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |