From: Johannes Weiner Date: Wed, 4 Mar 2009 15:21:32 +0000 (+0100) Subject: xtensa: let platform override KERNELOFFSET X-Git-Tag: upstream/snapshot3+hdmi~19484^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6770fa020fe3b63915ab082b4e5fd99d2d368c82;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git xtensa: let platform override KERNELOFFSET The linker script should not assume a fix offset in memory for the kernel, this is platform-specific, so let the platform set it. Signed-off-by: Johannes Weiner Signed-off-by: Chris Zankel --- diff --git a/arch/xtensa/kernel/vmlinux.lds.S b/arch/xtensa/kernel/vmlinux.lds.S index d506774..c1be9a4 100644 --- a/arch/xtensa/kernel/vmlinux.lds.S +++ b/arch/xtensa/kernel/vmlinux.lds.S @@ -17,6 +17,7 @@ #include #include +#include OUTPUT_ARCH(xtensa) ENTRY(_start) @@ -26,7 +27,9 @@ jiffies = jiffies_64 + 4; jiffies = jiffies_64; #endif +#ifndef KERNELOFFSET #define KERNELOFFSET 0xd0001000 +#endif /* Note: In the following macros, it would be nice to specify only the vector name and section kind and construct "sym" and "section" using