Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116181
b: refs/heads/master
c: 4aeaa22
h: refs/heads/master
i:
  116179: 085f8d5
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Oct 20, 2008
1 parent f223a03 commit e21a6ec
Show file tree
Hide file tree
Showing 2 changed files with 10 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: a30c89ad41099f58922e0941e346e7c4371655b9
refs/heads/master: 4aeaa223433355a281559033f1e7600bfd73238e
15 changes: 9 additions & 6 deletions trunk/arch/sh/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ static void __init reserve_crashkernel(void)
{
unsigned long long free_mem;
unsigned long long crash_size, crash_base;
void *vp;
int ret;

free_mem = ((unsigned long long)max_low_pfn - min_low_pfn) << PAGE_SHIFT;
Expand All @@ -155,12 +156,14 @@ static void __init reserve_crashkernel(void)
&crash_size, &crash_base);
if (ret == 0 && crash_size) {
if (crash_base <= 0) {
printk(KERN_INFO "crashkernel reservation failed - "
"you have to specify a base address\n");
return;
}

if (reserve_bootmem(crash_base, crash_size,
vp = alloc_bootmem_nopanic(crash_size);
if (!vp) {
printk(KERN_INFO "crashkernel allocation "
"failed\n");
return;
}
crash_base = __pa(vp);
} else if (reserve_bootmem(crash_base, crash_size,
BOOTMEM_EXCLUSIVE) < 0) {
printk(KERN_INFO "crashkernel reservation failed - "
"memory is in use\n");
Expand Down

0 comments on commit e21a6ec

Please sign in to comment.