Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Compute memory size correctly

  • Loading branch information...
commit df8fcc1c3abcca69697ed2310cee2b8a9a9322c8 1 parent 125d571
Sébastien Bourdeauducq authored May 22, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  arch/lm32/mm/init.c
2  arch/lm32/mm/init.c
@@ -110,7 +110,7 @@ void __init mem_init(void)
110 110
 {
111 111
 	high_memory = (void *)__va(max_low_pfn * PAGE_SIZE);
112 112
 
113  
-	max_mapnr = num_physpages = max_low_pfn;
  113
+	max_mapnr = num_physpages = max_low_pfn - min_low_pfn;
114 114
 
115 115
 	totalram_pages = free_all_bootmem();
116 116
 

0 notes on commit df8fcc1

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