t-kernel-zh team mailing list archive
-
t-kernel-zh team
-
Mailing list archive
-
Message #00020
[PATCH] arm9: move initial sp to machine dependent header
From: DU HUANPENG <u74147@xxxxxxxxx>
CONFIG_INIT_SP: include/sys/sysdepend/tef_em1d/machine_depend.h
Signed-off-by: DU HUANPENG <u74147@xxxxxxxxx>
---
tkernel_source/include/sys/sysdepend/tef_em1d/machine_depend.h | 2 ++
tkernel_source/monitor/hwdepend/tef_em1d/src/reset.S | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/tkernel_source/include/sys/sysdepend/tef_em1d/machine_depend.h b/tkernel_source/include/sys/sysdepend/tef_em1d/machine_depend.h
index 5e1e8ea..2b38e46 100644
--- a/tkernel_source/include/sys/sysdepend/tef_em1d/machine_depend.h
+++ b/tkernel_source/include/sys/sysdepend/tef_em1d/machine_depend.h
@@ -46,4 +46,6 @@
#define _Csym 0
#endif
+#define CONFIG_INIT_SP 0xa0020000
+
#endif /* __SYS_MACHINE_DEPEND_H__ */
diff --git a/tkernel_source/monitor/hwdepend/tef_em1d/src/reset.S b/tkernel_source/monitor/hwdepend/tef_em1d/src/reset.S
index e965130..f533ffc 100644
--- a/tkernel_source/monitor/hwdepend/tef_em1d/src/reset.S
+++ b/tkernel_source/monitor/hwdepend/tef_em1d/src/reset.S
@@ -89,7 +89,7 @@ startup_entry:
msr cpsr_fsxc, r0
// use On-Chip SRAM as stack area
- ldr sp, =0xa0020000
+ ldr sp, =CONFIG_INIT_SP
// not in effect: MMU, cache (D/I), program-flow prediction, High-Vector, VIC
// in effect: Force AP, TEX remap, Subpage AP
--
2.7.4
References