diff options
-rw-r--r-- | kexec/arch/ppc64/crashdump-ppc64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c index 50e3853..b2787d5 100644 --- a/kexec/arch/ppc64/crashdump-ppc64.c +++ b/kexec/arch/ppc64/crashdump-ppc64.c @@ -612,12 +612,12 @@ int get_crash_kernel_load_range(uint64_t *start, uint64_t *end) unsigned long long value; if (!get_devtree_value(DEVTREE_CRASHKERNEL_BASE, &value)) - *start = value; + *start = be64_to_cpu(value); else return -1; if (!get_devtree_value(DEVTREE_CRASHKERNEL_SIZE, &value)) - *end = *start + value - 1; + *end = *start + be64_to_cpu(value) - 1; else return -1; |