Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91965
b: refs/heads/master
c: 3b2a7e2
h: refs/heads/master
i:
  91963: 3712d4b
v: v3
  • Loading branch information
David S. Miller committed Apr 24, 2008
1 parent f65575e commit 08aff35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: 4e82c9a606da2b1c1c7ea7dfd8052626a4c6d5d6
refs/heads/master: 3b2a7e23a9808e349bc5fb32327bacc5e81be79c
14 changes: 13 additions & 1 deletion trunk/arch/sparc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/cache.h>
#include <linux/sort.h>
#include <linux/percpu.h>
#include <linux/lmb.h>

#include <asm/head.h>
#include <asm/system.h>
Expand Down Expand Up @@ -910,6 +911,8 @@ static void __init find_ramdisk(unsigned long phys_base)

initrd_start = ramdisk_image;
initrd_end = ramdisk_image + sparc_ramdisk_size;

lmb_reserve(initrd_start, initrd_end);
}
#endif
}
Expand Down Expand Up @@ -1337,15 +1340,24 @@ void __init paging_init(void)
sun4v_ktsb_init();
}

lmb_init();

/* Find available physical memory... */
read_obp_memory("available", &pavail[0], &pavail_ents);

phys_base = 0xffffffffffffffffUL;
for (i = 0; i < pavail_ents; i++)
for (i = 0; i < pavail_ents; i++) {
phys_base = min(phys_base, pavail[i].phys_addr);
lmb_add(pavail[i].phys_addr, pavail[i].reg_size);
}

lmb_reserve(kern_base, kern_size);

find_ramdisk(phys_base);

lmb_analyze();
lmb_dump_all();

set_bit(0, mmu_context_bmap);

shift = kern_base + PAGE_OFFSET - ((unsigned long)KERNBASE);
Expand Down

0 comments on commit 08aff35

Please sign in to comment.