• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂a1977104ea0f522a4c41f219288e01e3bf0962c1 (tree)
時間2019-07-05 00:45:28
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

h8300: fix disable relocation

Change Summary

差異

--- a/arch/h8300/Kconfig
+++ b/arch/h8300/Kconfig
@@ -48,9 +48,6 @@ config TIMER_BASE
4848 hex
4949 default 0xffff80
5050
51-config SYS_NON_RELOC
52- bool
53-
5451 source "board/h8300h_sim/Kconfig"
5552 source "board/h8300s_sim/Kconfig"
5653 source "board/ae3069/Kconfig"
--- a/arch/h8300/cpu/h8300h/start.S
+++ b/arch/h8300/cpu/h8300h/start.S
@@ -20,6 +20,7 @@
2020 #include <config.h>
2121 #include <version.h>
2222 #include <asm-offsets.h>
23+#include <asm/global_data.h>
2324
2425 .h8300h
2526
@@ -54,15 +55,13 @@ _start:
5455 jsr @board_init_f_alloc_reserve
5556 mov.l er0,sp
5657 jsr @board_init_f_init_reserve
57- sub.l er0,er0 /* boot flags */
58+ mov.l #GD_FLG_SKIP_RELOC, er0 /* boot flags */
5859 jsr @board_init_f
59- bra .
60-
61-relocate_code:
62- mov.l er1,er0
60+ mov.l @gd,er0
6361 sub.l er1,er1
64- mov.l #CONFIG_SYS_DRAM_BASE + CONFIG_SYS_DRAM_SIZE, er2
65- mov.l er2,@(GD_RELOCADDR,er0)
6662 jmp @board_init_r
6763
64+relocate_code:
65+ rts
66+
6867 .end
--- a/board/nisshin-tech/kanebebe/Kconfig
+++ b/board/nisshin-tech/kanebebe/Kconfig
@@ -21,7 +21,4 @@ config DM_ETH
2121 config SYS_TEXT_BASE
2222 default 0x00000100
2323
24-config SYS_NON_RELOC
25- default y
26-
2724 endif
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -993,7 +993,7 @@ void board_init_f(ulong boot_flags)
993993
994994 #if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \
995995 !defined(CONFIG_EFI_APP) && !CONFIG_IS_ENABLED(X86_64) && \
996- !defined(CONFIG_ARC)
996+ !defined(CONFIG_ARC) && !defined(CONFIG_H8300)
997997 /* NOTREACHED - jump_to_copy() does not return */
998998 hang();
999999 #endif
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -126,7 +126,6 @@ static int initr_reloc_global_data(void)
126126 #elif !defined(CONFIG_SANDBOX) && !defined(CONFIG_NIOS2)
127127 monitor_flash_len = (ulong)&__init_end - gd->relocaddr;
128128 #endif
129-#if !defined(CONFIG_SYS_NON_RELOC)
130129 #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
131130 /*
132131 * The gd->cpu pointer is set to an address in flash before relocation.
@@ -165,7 +164,6 @@ static int initr_reloc_global_data(void)
165164
166165 efi_runtime_relocate(gd->relocaddr, NULL);
167166 #endif
168-#endif
169167 return 0;
170168 }
171169