Skip to content

Commit

Permalink
Merge "msm8960: Reduce kernel memory to account for the increased TZ …
Browse files Browse the repository at this point in the history
…Apps size."
  • Loading branch information
Linux Build Service Account authored and QuIC Gerrit Code Review committed Mar 28, 2012
2 parents 933fbd9 + 5cb168d commit b1bd22f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions target/msm8960/atags.c
Expand Up @@ -33,7 +33,7 @@

#define SIZE_1M (1024 * 1024)
#define SIZE_2M (2 * SIZE_1M)
#define SIZE_141M (141 * SIZE_1M)
#define SIZE_140M (140 * SIZE_1M)
#define SIZE_256M (256 * SIZE_1M)
#define SIZE_512M (512 * SIZE_1M)

Expand All @@ -44,15 +44,15 @@ unsigned *target_atag_mem(unsigned *ptr)

if (smem_ram_ptable_init(&ram_ptable)) {
for (i = 0; i < ram_ptable.len; i++) {
/* Use only 141M from memory bank starting at 0x80000000 */
/* Use only 140M from memory bank starting at 0x80000000 */
if (ram_ptable.parts[i].category == SDRAM &&
ram_ptable.parts[i].type == SYS_MEMORY &&
ram_ptable.parts[i].start == 0x80000000) {
ASSERT(ram_ptable.parts[i].size >= SIZE_256M);

*ptr++ = 4;
*ptr++ = 0x54410002;
*ptr++ = SIZE_141M;
*ptr++ = SIZE_140M;
*ptr++ = ram_ptable.parts[i].start + SIZE_2M;

if (ram_ptable.parts[i].size > SIZE_256M) {
Expand Down

0 comments on commit b1bd22f

Please sign in to comment.