aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Kuo <rkuo@codeaurora.org>2013-04-08 19:03:05 -0500
committerRichard Kuo <rkuo@codeaurora.org>2013-04-09 18:19:55 -0500
commited6d5bb925cc91150f781430fca60c7e9cf267c3 (patch)
tree1172c379dd4df4b0e0241535311abf3fe9218988
parent277958c0394f94a4343efb7d04d07c0280d8d37b (diff)
downloadlinux-hexagon-kernel-ed6d5bb925cc91150f781430fca60c7e9cf267c3.tar.gz
Hexagon: use correct translation for VMALLOC_START
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
-rw-r--r--arch/hexagon/include/asm/mem-layout.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/hexagon/include/asm/mem-layout.h b/arch/hexagon/include/asm/mem-layout.h
index 2cb7a706208f57..60556f8c45d87c 100644
--- a/arch/hexagon/include/asm/mem-layout.h
+++ b/arch/hexagon/include/asm/mem-layout.h
@@ -72,8 +72,7 @@ extern int max_kernel_seg;
* supposed to be based on the amount of physical memory available
*/
-#define VMALLOC_START (PAGE_OFFSET + VMALLOC_OFFSET + \
- (unsigned long)high_memory)
+#define VMALLOC_START ((unsigned long) __va(high_memory + VMALLOC_OFFSET))
/* Gap between physical ram and vmalloc space for guard purposes. */
#define VMALLOC_OFFSET PAGE_SIZE