Hexagon: use defines for MIN_KERNEL_SEG calculation
Richard Kuo [Wed, 9 May 2012 00:06:03 +0000 (19:06 -0500)]
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>

arch/hexagon/include/asm/mem-layout.h

index 1426cd7..3724cea 100644 (file)
@@ -64,7 +64,7 @@ enum fixed_addresses {
        __end_of_fixed_addresses
 };
 
-#define MIN_KERNEL_SEG 0x300   /* From 0xc0000000 */
+#define MIN_KERNEL_SEG (PAGE_OFFSET >> PGDIR_SHIFT)   /* L1 shift is 22 bits */
 extern int max_kernel_seg;
 
 /*