Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41372
b: refs/heads/master
c: d4df6d4
h: refs/heads/master
v: v3
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed Nov 30, 2006
1 parent 8606c65 commit 8539a34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 620a4802be8ee7989b1b6684b7198ebae02af854
refs/heads/master: d4df6d4e7a66b7a9bd57f5dc7d80d6b55dc12dbb
6 changes: 3 additions & 3 deletions trunk/arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ static void __init finalize_initrd(void)
printk(KERN_INFO "Initrd not found or empty");
goto disable;
}
if (CPHYSADDR(initrd_end) > PFN_PHYS(max_low_pfn)) {
if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) {
printk("Initrd extends beyond end of memory");
goto disable;
}

reserve_bootmem(CPHYSADDR(initrd_start), size);
reserve_bootmem(__pa(initrd_start), size);
initrd_below_start_ok = 1;

printk(KERN_INFO "Initial ramdisk at: 0x%lx (%lu bytes)\n",
Expand Down Expand Up @@ -260,7 +260,7 @@ static void __init bootmem_init(void)
* of usable memory.
*/
reserved_end = init_initrd();
reserved_end = PFN_UP(CPHYSADDR(max(reserved_end, (unsigned long)&_end)));
reserved_end = PFN_UP(__pa(max(reserved_end, (unsigned long)&_end)));

/*
* Find the highest page frame number we have available.
Expand Down

0 comments on commit 8539a34

Please sign in to comment.