X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fhang.c;h=2735774f9a4061c8252cc735ce66558c3ac5f4bc;hb=46b5c8ed017958fc387ab86c71ae6c90abb6793c;hp=8db268ef95f0f7021b1d10deb7fcf4687dc710ef;hpb=1a4596601fd395f3afb8f82f3f840c5e00bdd57a;p=platform%2Fkernel%2Fu-boot.git diff --git a/lib/hang.c b/lib/hang.c index 8db268e..2735774 100644 --- a/lib/hang.c +++ b/lib/hang.c @@ -1,15 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2013 - * Andreas Bießmann + * Andreas Bießmann * * This file consolidates all the different hang() functions implemented in * u-boot. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include +#include +#include /** * hang - stop processing by staying in an endless loop @@ -21,11 +22,14 @@ */ void hang(void) { -#if !defined(CONFIG_SPL_BUILD) || (defined(CONFIG_SPL_LIBCOMMON_SUPPORT) && \ - defined(CONFIG_SPL_SERIAL_SUPPORT)) +#if !defined(CONFIG_SPL_BUILD) || \ + (CONFIG_IS_ENABLED(LIBCOMMON_SUPPORT) && \ + CONFIG_IS_ENABLED(SERIAL)) puts("### ERROR ### Please RESET the board ###\n"); #endif bootstage_error(BOOTSTAGE_ID_NEED_RESET); + if (IS_ENABLED(CONFIG_SANDBOX)) + os_exit(1); for (;;) ; }