浏览代码

sh: Fix up KERNEL_ENTRY calculation for uImage.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 17 年之前
父节点
当前提交
6fc5153aab
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      arch/sh/boot/Makefile

+ 3 - 2
arch/sh/boot/Makefile

@@ -38,8 +38,9 @@ KERNEL_LOAD	:= $(shell /bin/bash -c 'printf "0x%8x" \
 			$(CONFIG_ZERO_PAGE_OFFSET)]')
 			$(CONFIG_ZERO_PAGE_OFFSET)]')
 
 
 KERNEL_ENTRY	:= $(shell /bin/bash -c 'printf "0x%8x" \
 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  $@
 quiet_cmd_uimage = UIMAGE  $@
       cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \
       cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \