From: Mike Frysinger Date: Sun, 12 Oct 2008 01:18:10 +0000 (-0400) Subject: Blackfin: set initial stack correctly according to Blackfin ABI X-Git-Tag: v2009.01-rc1~102^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=960922291c9594acb575cec7e47d7bed9b58182c;p=u-boot Blackfin: set initial stack correctly according to Blackfin ABI Signed-off-by: Mike Frysinger --- diff --git a/cpu/blackfin/start.S b/cpu/blackfin/start.S index c4d52b4857..f351fab170 100644 --- a/cpu/blackfin/start.S +++ b/cpu/blackfin/start.S @@ -1,7 +1,7 @@ /* * U-boot - start.S Startup file for Blackfin u-boot * - * Copyright (c) 2005-2007 Analog Devices Inc. + * Copyright (c) 2005-2008 Analog Devices Inc. * * This file is based on head.S * Copyright (c) 2003 Metrowerks/Motorola @@ -49,8 +49,8 @@ ENTRY(_start) /* Set our initial stack to L1 scratch space */ - sp.l = LO(L1_SRAM_SCRATCH + L1_SRAM_SCRATCH_SIZE); - sp.h = HI(L1_SRAM_SCRATCH + L1_SRAM_SCRATCH_SIZE); + sp.l = LO(L1_SRAM_SCRATCH_END - 20); + sp.h = HI(L1_SRAM_SCRATCH_END - 20); #ifdef CONFIG_HW_WATCHDOG # ifndef CONFIG_HW_WATCHDOG_TIMEOUT_START