Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81428
b: refs/heads/master
c: 41d824b
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jan 31, 2008
1 parent 5e4188b commit 14f9ade
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 1f62a1626e53e7b851e3e059cbd2fdc99cb85c05
refs/heads/master: 41d824bf61b507c001868861cddda25eaab23cd7
12 changes: 9 additions & 3 deletions trunk/arch/powerpc/mm/hash_utils_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void __init htab_initialize(void)
unsigned long table;
unsigned long pteg_count;
unsigned long mode_rw;
unsigned long base = 0, size = 0;
unsigned long base = 0, size = 0, limit;
int i;

extern unsigned long tce_alloc_start, tce_alloc_end;
Expand Down Expand Up @@ -505,9 +505,15 @@ void __init htab_initialize(void)
_SDR1 = 0;
} else {
/* Find storage for the HPT. Must be contiguous in
* the absolute address space.
* the absolute address space. On cell we want it to be
* in the first 1 Gig.
*/
table = lmb_alloc(htab_size_bytes, htab_size_bytes);
if (machine_is(cell))
limit = 0x40000000;
else
limit = 0;

table = lmb_alloc_base(htab_size_bytes, htab_size_bytes, limit);

DBG("Hash table allocated at %lx, size: %lx\n", table,
htab_size_bytes);
Expand Down

0 comments on commit 14f9ade

Please sign in to comment.