summaryrefslogtreecommitdiffstats
path: root/cpu
diff options
context:
space:
mode:
authorSeunghyeon Rhee <rhee4j1@gmail.com>2009-11-13 16:49:41 +0900
committerTom Rix <Tom.Rix@windriver.com>2009-11-27 16:26:13 -0600
commita59a23d68ae4f4a1c07d105520c93e6e289d186f (patch)
tree95049ccbb0a15659a564b683f9ad23580dcac60a /cpu
parent940032260914076b1594906334b2e3f7af6fb7cf (diff)
downloadu-boot-a59a23d68ae4f4a1c07d105520c93e6e289d186f.tar.gz
u-boot-a59a23d68ae4f4a1c07d105520c93e6e289d186f.tar.xz
u-boot-a59a23d68ae4f4a1c07d105520c93e6e289d186f.zip
S3C6400/SMDK6400: fix stack_setup in start.S
Fix stack_setup to place the stack on the correct address in DRAM accroding to U-Boot standard and remove conditional compilation by CONFIG_MEMORY_UPPER_CODE macro that is not necessry. This macro was introduced and used only by this board for some unclear reason. The definition of this macro is also removed because it's not referenced elsewhere. Signed-off-by: Seunghyeon Rhee <seunghyeon@lpmtec.com> Tested-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/arm1176/start.S7
1 files changed, 1 insertions, 6 deletions
diff --git a/cpu/arm1176/start.S b/cpu/arm1176/start.S
index 2bb9bf208d..68a356d13e 100644
--- a/cpu/arm1176/start.S
+++ b/cpu/arm1176/start.S
@@ -241,16 +241,11 @@ mmu_enable:
skip_hw_init:
/* Set up the stack */
stack_setup:
-#ifdef CONFIG_MEMORY_UPPER_CODE
- ldr sp, =(CONFIG_SYS_UBOOT_BASE + CONFIG_SYS_UBOOT_SIZE - 0xc)
-#else
- ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
+ ldr r0, =CONFIG_SYS_UBOOT_BASE /* base of copy in DRAM */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */
sub sp, r0, #12 /* leave 3 words for abort-stack */
-#endif
-
clear_bss:
ldr r0, _bss_start /* find start of bss segment */
ldr r1, _bss_end /* stop here */