Skip to content

Commit

Permalink
4G will be use as the boarder for X86_64 low/high memory
Browse files Browse the repository at this point in the history
Signed-off-by: MartinZhang <martinbj2008@gmail.com>
  • Loading branch information
martinbj2008 committed Oct 1, 2012
1 parent 155fb48 commit 2f6215c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,9 @@ void __init setup_arch(char **cmdline_p)
high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1;
#endif

/*[x86_64] [mm] [Junwei]: x86 will split the memeory map(from e820) by 4G(1<<32)*/
printk(KERN_INFO "%s: max_pfn=%lu(%lx), max_low_pfn=%lu(%lx), highmem=%p\n",
__func__, max_pfn, max_pfn, max_low_pfn, max_low_pfn, high_memory);
/*
* Find and reserve possible boot-time SMP configuration:
*/
Expand Down

0 comments on commit 2f6215c

Please sign in to comment.