Skip to content
Browse files

Compute memory size correctly

  • Loading branch information...
1 parent 125d571 commit df8fcc1c3abcca69697ed2310cee2b8a9a9322c8 @sbourdeauducq sbourdeauducq committed
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();

0 comments on commit df8fcc1

Please sign in to comment.
Something went wrong with that request. Please try again.