sh: Fix up KERNEL_ENTRY calculation for uImage.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 17 Dec 2007 07:08:49 +0000 (16:08 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:19:01 +0000 (13:19 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boot/Makefile

index 4b3a6f1..59f552c 100644 (file)
@@ -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 \