On Fri, Dec 06, 2013 at 12:55:30AM +0530, Mahesh J Salgaonkar wrote: > From: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com> > > A switchover from /kexec/arch/ppc64/fs2dt.c to common code under > /kexec/fs2dt.c broke the kdump on ppc64. The function add_usable_memory() > assumes that 'memory@*' node exports two 32bit values and fails > to populate mem ranges correctly. On ppc64, 'memory@*' exports two 64bit > values as below: > > # hexdump /proc/device-tree/memory\@0/reg > 0000000 0000 0000 0000 0000 0000 0000 0800 0000 > 0000010 > # > > This patch fixes add_usable_memory() to use buf[2] of type uint64_t. > > Signed-off-by: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com> Thanks, applied.