diff options
author | Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> | 2013-12-06 00:55:30 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-12-06 18:24:27 +0900 |
commit | 5676baaf3fb0aa37ad7e4de4fbd512c1f8751068 (patch) | |
tree | 4d694f639e3e198970802b09d978eee5bef9c63d /kexec/kernel_version.c | |
parent | b2b9891ce6e883cd83a983ee6e94780f8b0820bc (diff) |
kexec: Fix add_usable_memory to use buf of type uint64_t.
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@linux.vnet.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kernel_version.c')
0 files changed, 0 insertions, 0 deletions