3 * Andreas Bießmann <andreas@biessmann.org>
5 * This file consolidates all the different hang() functions implemented in
8 * SPDX-License-Identifier: GPL-2.0+
12 #include <bootstage.h>
15 * hang - stop processing by staying in an endless loop
17 * The purpose of this function is to stop further execution of code cause
18 * something went completely wrong. To catch this and give some feedback to
19 * the user one needs to catch the bootstage_error (see show_boot_progress())
24 #if !defined(CONFIG_SPL_BUILD) || (defined(CONFIG_SPL_LIBCOMMON_SUPPORT) && \
25 defined(CONFIG_SPL_SERIAL_SUPPORT))
26 puts("### ERROR ### Please RESET the board ###\n");
28 bootstage_error(BOOTSTAGE_ID_NEED_RESET);