Hexagon: use defines for MIN_KERNEL_SEG calculation
authorRichard Kuo <rkuo@codeaurora.org>
Wed, 9 May 2012 00:06:03 +0000 (19:06 -0500)
committerRichard Kuo <rkuo@codeaurora.org>
Wed, 1 May 2013 00:40:23 +0000 (19:40 -0500)
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
arch/hexagon/include/asm/mem-layout.h

index 1426cd71a1d3c4d276df5c58fe18fe03c193bb2d..3724cea5c59cf5cb5b929db36a112a2f720a3b1c 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;
 
 /*