Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356196
b: refs/heads/master
c: 74f2765
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Nov 17, 2012
1 parent e004795 commit 21e06c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 66520ebc2df3fe52eb4792f8101fac573b766baf
refs/heads/master: 74f27655dda84604d8bab47872020dcce5c88731
7 changes: 3 additions & 4 deletions trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static void __init relocate_initrd(void)
char *p, *q;

/* We need to move the initrd down into directly mapped mem */
ramdisk_here = memblock_find_in_range(0, PFN_PHYS(max_low_pfn_mapped),
ramdisk_here = memblock_find_in_range(0, PFN_PHYS(max_pfn_mapped),
area_size, PAGE_SIZE);

if (!ramdisk_here)
Expand Down Expand Up @@ -392,7 +392,7 @@ static void __init reserve_initrd(void)

initrd_start = 0;

mapped_size = get_mem_size(max_low_pfn_mapped);
mapped_size = get_mem_size(max_pfn_mapped);
if (ramdisk_size >= (mapped_size>>1))
panic("initrd too large to handle, "
"disabling initrd (%lld needed, %lld available)\n",
Expand All @@ -401,8 +401,7 @@ static void __init reserve_initrd(void)
printk(KERN_INFO "RAMDISK: [mem %#010llx-%#010llx]\n", ramdisk_image,
ramdisk_end - 1);

if (ramdisk_end <= (max_low_pfn_mapped<<PAGE_SHIFT) &&
pfn_range_is_mapped(PFN_DOWN(ramdisk_image),
if (pfn_range_is_mapped(PFN_DOWN(ramdisk_image),
PFN_DOWN(ramdisk_end))) {
/* All are mapped, easy case */
/*
Expand Down

0 comments on commit 21e06c8

Please sign in to comment.