Skip to content

Commit df8fcc1

Browse files
author
Sebastien Bourdeauducq
committedMay 22, 2012
Compute memory size correctly
1 parent 125d571 commit df8fcc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎arch/lm32/mm/init.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void __init mem_init(void)
110110
{
111111
high_memory = (void *)__va(max_low_pfn * PAGE_SIZE);
112112

113-
max_mapnr = num_physpages = max_low_pfn;
113+
max_mapnr = num_physpages = max_low_pfn - min_low_pfn;
114114

115115
totalram_pages = free_all_bootmem();
116116

0 commit comments

Comments
 (0)
Please sign in to comment.