1 // SPDX-License-Identifier: GPL-2.0+
4 * Andreas Bießmann <andreas@biessmann.org>
6 * This file consolidates all the different hang() functions implemented in
11 #include <bootstage.h>
16 * hang - stop processing by staying in an endless loop
18 * The purpose of this function is to stop further execution of code cause
19 * something went completely wrong. To catch this and give some feedback to
20 * the user one needs to catch the bootstage_error (see show_boot_progress())
25 #if !defined(CONFIG_SPL_BUILD) || \
26 (CONFIG_IS_ENABLED(LIBCOMMON_SUPPORT) && \
27 CONFIG_IS_ENABLED(SERIAL))
28 puts("### ERROR ### Please RESET the board ###\n");
30 bootstage_error(BOOTSTAGE_ID_NEED_RESET);
31 if (IS_ENABLED(CONFIG_SANDBOX))