Skip to content

Commit

Permalink
x86: e820 max_arch_pfn typo fix for 64 bit
Browse files Browse the repository at this point in the history
should use right shift

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Yinghai Lu authored and Thomas Gleixner committed Jun 4, 2008
1 parent 7b2a0a6 commit bd70e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ u64 __init early_reserve_e820(u64 startt, u64 sizet, u64 align)
# define MAX_ARCH_PFN (1ULL<<(32-PAGE_SHIFT))
# endif
#else /* CONFIG_X86_32 */
# define MAX_ARCH_PFN MAXMEM<<PAGE_SHIFT
# define MAX_ARCH_PFN MAXMEM>>PAGE_SHIFT
#endif

/*
Expand Down

0 comments on commit bd70e52

Please sign in to comment.