Skip to content

Commit

Permalink
x86: fix memory setup bug
Browse files Browse the repository at this point in the history
interesting...

[    0.000000]   mapped low ram: 0 - 20000000
[    0.000000]   low ram: 00000000 - 1fff0000
[    0.000000]   bootmap 00002000 - 00006000

max_pfn_mapped > max_low_pfn?

it seems init_memory_mapping reveals an old bug.

please check attached test patch.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 383bc5c commit b9d19f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void __init setup_arch(char **cmdline_p)
find_low_pfn_range();

/* max_pfn_mapped is updated here */
init_memory_mapping(0, (max_low_pfn << PAGE_SHIFT));
max_pfn_mapped = init_memory_mapping(0, (max_low_pfn << PAGE_SHIFT));

reserve_initrd();

Expand Down

0 comments on commit b9d19f4

Please sign in to comment.