Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252399
b: refs/heads/master
c: 40f7bfe
h: refs/heads/master
i:
  252397: 362a37e
  252395: 74b1ca8
  252391: 99430d3
  252383: e8fa598
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed May 26, 2011
1 parent 3017d26 commit 75876fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 7b7bf499f79de3f6c85a340c8453a78789523f85
refs/heads/master: 40f7bfe4f1c2761abeceb3b2b9dc1feec3c47ed9
9 changes: 5 additions & 4 deletions trunk/arch/arm/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,15 +763,12 @@ static void __init sanity_check_meminfo(void)
{
int i, j, highmem = 0;

lowmem_limit = __pa(vmalloc_min - 1) + 1;
memblock_set_current_limit(lowmem_limit);

for (i = 0, j = 0; i < meminfo.nr_banks; i++) {
struct membank *bank = &meminfo.bank[j];
*bank = meminfo.bank[i];

#ifdef CONFIG_HIGHMEM
if (__va(bank->start) > vmalloc_min ||
if (__va(bank->start) >= vmalloc_min ||
__va(bank->start) < (void *)PAGE_OFFSET)
highmem = 1;

Expand Down Expand Up @@ -829,6 +826,9 @@ static void __init sanity_check_meminfo(void)
bank->size = newsize;
}
#endif
if (!bank->highmem && bank->start + bank->size > lowmem_limit)
lowmem_limit = bank->start + bank->size;

j++;
}
#ifdef CONFIG_HIGHMEM
Expand All @@ -852,6 +852,7 @@ static void __init sanity_check_meminfo(void)
}
#endif
meminfo.nr_banks = j;
memblock_set_current_limit(lowmem_limit);
}

static inline void prepare_page_table(void)
Expand Down

0 comments on commit 75876fa

Please sign in to comment.