summaryrefslogtreecommitdiffstats
path: root/arch/hexagon/include
diff options
context:
space:
mode:
authorRichard Kuo <rkuo@codeaurora.org>2012-05-08 19:06:03 -0500
committerRichard Kuo <rkuo@codeaurora.org>2013-04-30 19:40:23 -0500
commite470d932ce7f998aeab788fdc7b49ef26e76b4eb (patch)
tree34a1f4f3d88bb0903fb70748e8d37099d2ecd9ee /arch/hexagon/include
parent53debcd518e72d01bfe0364f1504fa585826941c (diff)
downloadop-kernel-dev-e470d932ce7f998aeab788fdc7b49ef26e76b4eb.zip
op-kernel-dev-e470d932ce7f998aeab788fdc7b49ef26e76b4eb.tar.gz
Hexagon: use defines for MIN_KERNEL_SEG calculation
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon/include')
-rw-r--r--arch/hexagon/include/asm/mem-layout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/hexagon/include/asm/mem-layout.h b/arch/hexagon/include/asm/mem-layout.h
index 1426cd7..3724cea 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;
/*
OpenPOWER on IntegriCloud