]> err.no Git - linux-2.6/commitdiff
x86: e820 max_arch_pfn typo fix for 64 bit
authorYinghai Lu <yhlu.kernel@gmail.com>
Wed, 4 Jun 2008 20:21:29 +0000 (13:21 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Jun 2008 21:15:33 +0000 (23:15 +0200)
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>
arch/x86/kernel/e820.c

index c140f731743b026effe451ee75eedf3c282ee152..5d33b9c08d1b972fd8575510b78f1bb2f2304109 100644 (file)
@@ -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
 
 /*