Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114546
b: refs/heads/master
c: 82331ab
h: refs/heads/master
v: v3
  • Loading branch information
Becky Bruce authored and Kumar Gala committed Sep 16, 2008
1 parent 4ccaa8a commit 57a5986
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 307db95882fdfba372a0639e8e238cf8c542f430
refs/heads/master: 82331ab15f14786f3d8e874efb76462685e3bfa0
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/mm/fsl_booke_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ adjust_total_lowmem(void)
cam_max_size = max_lowmem_size;

/* adjust lowmem size to max_lowmem_size */
ram = min(max_lowmem_size, (phys_addr_t)total_lowmem);
ram = min(max_lowmem_size, total_lowmem);

/* Calculate CAM values */
__cam0 = 1UL << 2 * (__ilog2(ram) / 2);
Expand All @@ -225,7 +225,8 @@ adjust_total_lowmem(void)
printk(KERN_INFO "Memory CAM mapping: CAM0=%ldMb, CAM1=%ldMb,"
" CAM2=%ldMb residual: %ldMb\n",
__cam0 >> 20, __cam1 >> 20, __cam2 >> 20,
(total_lowmem - __cam0 - __cam1 - __cam2) >> 20);
(long int)((total_lowmem - __cam0 - __cam1 - __cam2)
>> 20));
__max_low_memory = __cam0 + __cam1 + __cam2;
__initial_memory_limit_addr = memstart_addr + __max_low_memory;
}

0 comments on commit 57a5986

Please sign in to comment.