From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 27 Nov 2013 12:22:05 -0500 Subject: [U-Boot] [PATCH] arm: Remove unused !CONFIG_SPL_BUILD code in board_init_f() Message-ID: <1385572925-18592-1-git-send-email-trini@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Some code in board_init_f that dates back to the initial relocation support had if/else for PRELOADER (which became SPL_BUILD) about setting the stack pointer. But, board.c is never built for CONFIG_SPL_BUILD now, so this really makes no sense. Drop this section. Cc: Albert ARIBAUD Signed-off-by: Tom Rini --- arch/arm/lib/board.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 34f50b0..3c519a8 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -377,7 +377,6 @@ void board_init_f(ulong bootflag) debug("Reserving %ldk for U-Boot at: %08lx\n", gd->mon_len >> 10, addr); -#ifndef CONFIG_SPL_BUILD /* * reserve memory for malloc() arena */ @@ -431,10 +430,6 @@ void board_init_f(ulong bootflag) /* 8-byte alignment for ABI compliance */ addr_sp &= ~0x07; -#else - addr_sp += 128; /* leave 32 words for abort-stack */ - gd->irq_sp = addr_sp; -#endif interrupt_init(); debug("New Stack Pointer is: %08lx\n", addr_sp); -- 1.7.9.5