summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt2007-12-17 08:08:49 +0100
committerPaul Mundt2008-01-28 05:19:01 +0100
commit6fc5153aab2a6eb23e636d962e1aceaabd0dfb12 (patch)
tree0a9b21fa43e8e8917d270354d623f74ddb30546d
parentsh: Fix up binfmt_flat compile warnings. (diff)
downloadkernel-qcow2-linux-6fc5153aab2a6eb23e636d962e1aceaabd0dfb12.tar.gz
kernel-qcow2-linux-6fc5153aab2a6eb23e636d962e1aceaabd0dfb12.tar.xz
kernel-qcow2-linux-6fc5153aab2a6eb23e636d962e1aceaabd0dfb12.zip
sh: Fix up KERNEL_ENTRY calculation for uImage.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/boot/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile
index 4b3a6f19c3b5..59f552c13349 100644
--- a/arch/sh/boot/Makefile
+++ b/arch/sh/boot/Makefile
@@ -38,8 +38,9 @@ KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%8x" \
$(CONFIG_ZERO_PAGE_OFFSET)]')
KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%8x" \
- $$[$(KERNEL_LOAD)+0x1000]')
-
+ $$[$(CONFIG_PAGE_OFFSET) + \
+ $(CONFIG_MEMORY_START) + \
+ $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]')
quiet_cmd_uimage = UIMAGE $@
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \