Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Compute memory size correctly

  • Loading branch information...
commit df8fcc1c3abcca69697ed2310cee2b8a9a9322c8 1 parent 125d571
@sbourdeauducq sbourdeauducq authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  arch/lm32/mm/init.c
View
2  arch/lm32/mm/init.c
@@ -110,7 +110,7 @@ void __init mem_init(void)
{
high_memory = (void *)__va(max_low_pfn * PAGE_SIZE);
- max_mapnr = num_physpages = max_low_pfn;
+ max_mapnr = num_physpages = max_low_pfn - min_low_pfn;
totalram_pages = free_all_bootmem();
Please sign in to comment.
Something went wrong with that request. Please try again.