From: Richard Kuo Date: Wed, 9 May 2012 00:06:03 +0000 (-0500) Subject: Hexagon: use defines for MIN_KERNEL_SEG calculation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e470d932ce7f998aeab788fdc7b49ef26e76b4eb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Hexagon: use defines for MIN_KERNEL_SEG calculation Signed-off-by: Richard Kuo --- diff --git a/arch/hexagon/include/asm/mem-layout.h b/arch/hexagon/include/asm/mem-layout.h index 1426cd71a1d3..3724cea5c59c 100644 --- a/arch/hexagon/include/asm/mem-layout.h +++ b/arch/hexagon/include/asm/mem-layout.h @@ -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; /*