diff options
| author | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-04-18 22:48:50 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-05-01 16:41:08 -0400 | 
| commit | d2eae43ba803cff75b44a07d08d718ecdecdee94 (patch) | |
| tree | 204a8f6910b96fe92724b4a03043864f6f0da798 /arch/blackfin/lib/board.c | |
| parent | b0dac5b1af6a66aeb02eb63e852415367b30b168 (diff) | |
| download | olio-uboot-2014.01-d2eae43ba803cff75b44a07d08d718ecdecdee94.tar.xz olio-uboot-2014.01-d2eae43ba803cff75b44a07d08d718ecdecdee94.zip | |
lib: consolidate hang()
Delete all occurrences of hang() and provide a generic function.
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
[trini: Modify check around puts() in hang.c slightly]
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/blackfin/lib/board.c')
| -rw-r--r-- | arch/blackfin/lib/board.c | 14 | 
1 files changed, 0 insertions, 14 deletions
| diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c index 75b6c463d..ccea3b9fb 100644 --- a/arch/blackfin/lib/board.c +++ b/arch/blackfin/lib/board.c @@ -432,17 +432,3 @@ void board_init_r(gd_t * id, ulong dest_addr)  	for (;;)  		main_loop();  } - -void hang(void) -{ -#ifdef CONFIG_STATUS_LED -	status_led_set(STATUS_LED_BOOT, STATUS_LED_OFF); -	status_led_set(STATUS_LED_CRASH, STATUS_LED_BLINKING); -#endif -	puts("### ERROR ### Please RESET the board ###\n"); -	while (1) -		/* If a JTAG emulator is hooked up, we'll automatically trigger -		 * a breakpoint in it.  If one isn't, this is just a NOP. -		 */ -		asm("emuexcpt;"); -} |