Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95323
b: refs/heads/master
c: eabd909
h: refs/heads/master
i:
  95321: 01d3871
  95319: 4eaa1f8
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Apr 30, 2008
1 parent a74a95e commit 3aa70ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3243d87441bf7f97c5c9f7dd46b35f5783ec6740
refs/heads/master: eabd90944b3a00766e84da3d117ea0f3e0a3b1a3
12 changes: 6 additions & 6 deletions trunk/arch/powerpc/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,20 @@ void __init reserve_crashkernel(void)
ret = parse_crashkernel(boot_command_line, lmb_phys_mem_size(),
&crash_size, &crash_base);
if (ret == 0 && crash_size > 0) {
if (crash_base == 0)
crash_base = KDUMP_KERNELBASE;
crashk_res.start = crash_base;
} else {
/* handle the device tree */
crash_size = crashk_res.end - crashk_res.start + 1;
crashk_res.end = crash_base + crash_size - 1;
}

if (crash_size == 0)
if (crashk_res.end == crashk_res.start) {
crashk_res.start = crashk_res.end = 0;
return;
}

/* We might have got these values via the command line or the
* device tree, either way sanitise them now. */

crash_size = crashk_res.end - crashk_res.start + 1;

if (crashk_res.start != KDUMP_KERNELBASE)
printk("Crash kernel location must be 0x%x\n",
KDUMP_KERNELBASE);
Expand Down

0 comments on commit 3aa70ef

Please sign in to comment.