diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c index f44205c3a8c2d44d592d5cf5776d503bf64febcb..16c080a1e159c7c34003254e85f44c125cad01d5 100644 --- a/arch/arm/cpu/arm926ejs/mxs/mxs.c +++ b/arch/arm/cpu/arm926ejs/mxs/mxs.c @@ -11,6 +11,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c index 7a1b39844e3ef6fedbf2c04da73904185a74fde1..7c57cab0b13241ccd546d0f68d6eedc185715a74 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c @@ -8,6 +8,7 @@ #include <common.h> #include <config.h> +#include <hang.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c index c1a08fb4ace13cf8f049860b54083bab2e34b9b1..6a5518f9de82db7ac03e275b0266fb9ae5418222 100644 --- a/arch/arm/cpu/armv8/cache_v8.c +++ b/arch/arm/cpu/armv8/cache_v8.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <asm/system.h> #include <asm/armv8/mmu.h> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c index e3df696b886c5c4e2ebdd5b9630ae72a39f4ed43..dce915a2ea18d21e772d9d431924b8bb5a80f059 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c @@ -9,6 +9,7 @@ #include <env.h> #include <fsl_ddr_sdram.h> #include <init.h> +#include <hang.h> #include <vsprintf.h> #include <asm/io.h> #include <linux/errno.h> diff --git a/arch/arm/include/asm/armv8/mmu.h b/arch/arm/include/asm/armv8/mmu.h index 4a573208dfd0995da25377ab44bb51b44357e02e..fc97c55114682bb6e061a8db48538d7a58b28e67 100644 --- a/arch/arm/include/asm/armv8/mmu.h +++ b/arch/arm/include/asm/armv8/mmu.h @@ -7,6 +7,7 @@ #ifndef _ASM_ARMV8_MMU_H_ #define _ASM_ARMV8_MMU_H_ +#include <hang.h> #include <linux/const.h> /* diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 769a64257fc4e272c9bd92a4e0ecd9ff61a0cfe9..a135bcfc7b55664382bb5f105b7944dbbf55d091 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -15,6 +15,7 @@ #include <command.h> #include <cpu_func.h> #include <dm.h> +#include <hang.h> #include <dm/root.h> #include <env.h> #include <image.h> diff --git a/arch/arm/lib/div0.c b/arch/arm/lib/div0.c index e185bfe0c652fc7df417573877bd222e3c549f90..b91b408f64bfa0ff2e78a00544c863c9f9293a30 100644 --- a/arch/arm/lib/div0.c +++ b/arch/arm/lib/div0.c @@ -4,10 +4,10 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */ +#include <hang.h> + /* Replacement (=dummy) for GNU/Linux division-by zero handler */ void __div0 (void) { - extern void hang (void); - hang(); } diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c index 6da6d41be2ecffc5cbe99b46e80a538e046f1683..156150c89c8b5222cbfd7c409993afea2d4565eb 100644 --- a/arch/arm/mach-at91/spl.c +++ b/arch/arm/mach-at91/spl.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/at91_wdt.h> diff --git a/arch/arm/mach-at91/spl_at91.c b/arch/arm/mach-at91/spl_at91.c index 1065f090e0102d06686409ccf7d477524fa042af..822f877de717a00633d8afb945561080452243b0 100644 --- a/arch/arm/mach-at91/spl_at91.c +++ b/arch/arm/mach-at91/spl_at91.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/at91sam9_matrix.h> diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index 85290be3696535ffdfd5e439fc4485c689659cb6..6ee0e1c24cfbc6fa4715ae2ffcf9753a9a9800f6 100644 --- a/arch/arm/mach-at91/spl_atmel.c +++ b/arch/arm/mach-at91/spl_atmel.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/at91_pit.h> diff --git a/arch/arm/mach-davinci/spl.c b/arch/arm/mach-davinci/spl.c index be3daa9bc02dfe715d72bc12897be10b66774d7f..d44e840aa0edbacb829bfffbb21d13fe0f67d446 100644 --- a/arch/arm/mach-davinci/spl.c +++ b/arch/arm/mach-davinci/spl.c @@ -5,6 +5,7 @@ */ #include <common.h> #include <config.h> +#include <hang.h> #include <spl.h> #include <asm/u-boot.h> #include <asm/utils.h> diff --git a/arch/arm/mach-imx/mx6/ddr.c b/arch/arm/mach-imx/mx6/ddr.c index 8ed8b79c8b7b2469fcceef2c7f22e956509d586e..4396880b7482d87c39702c23952a626a61d961ba 100644 --- a/arch/arm/mach-imx/mx6/ddr.c +++ b/arch/arm/mach-imx/mx6/ddr.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <hang.h> #include <linux/types.h> #include <asm/arch/clock.h> #include <asm/arch/mx6-ddr.h> diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 5a6493a6250a3819bf70f3172d365aa6a607dcaa..87dbdf3011eec20389c7ef8f0f1d08f894510c7f 100644 --- a/arch/arm/mach-imx/spl.c +++ b/arch/arm/mach-imx/spl.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-k3/security.c b/arch/arm/mach-k3/security.c index 4e011ee10ef7038839c006eba92eaa915ac9d5fa..6934e88a965bfdf9942d46ab112e5634820f709c 100644 --- a/arch/arm/mach-k3/security.c +++ b/arch/arm/mach-k3/security.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> +#include <hang.h> #include <linux/soc/ti/ti_sci_protocol.h> #include <mach/spl.h> #include <spl.h> diff --git a/arch/arm/mach-keystone/mon.c b/arch/arm/mach-keystone/mon.c index cc2ec8850568263b74f4a0920ce2332753bae887..b7de9ba099de3922919b9dce12370e64e100e99b 100644 --- a/arch/arm/mach-keystone/mon.c +++ b/arch/arm/mach-keystone/mon.c @@ -5,6 +5,7 @@ * Copyright (C) 2012-2019 Texas Instruments Incorporated - http://www.ti.com/ */ +#include <hang.h> #include <asm/unaligned.h> #include <common.h> #include <command.h> diff --git a/arch/arm/mach-mediatek/spl.c b/arch/arm/mach-mediatek/spl.c index 9b3590ff3d20b0ec105a7c4e7df13dd9b4f45a25..37f1f219b2d55d2844205c872c19a13744ff5fd5 100644 --- a/arch/arm/mach-mediatek/spl.c +++ b/arch/arm/mach-mediatek/spl.c @@ -6,6 +6,7 @@ #include <clk.h> #include <common.h> +#include <hang.h> #include <spl.h> #include "init.h" diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index 3cb27b7f4b208aca7a6e8e2282197c2ca40d1d74..a99bf166fd85109ce14edd53440bfcf323cf61f3 100644 --- a/arch/arm/mach-mvebu/spl.c +++ b/arch/arm/mach-mvebu/spl.c @@ -7,6 +7,7 @@ #include <dm.h> #include <debug_uart.h> #include <fdtdec.h> +#include <hang.h> #include <spl.h> #include <asm/io.h> #include <asm/arch/cpu.h> diff --git a/arch/arm/mach-omap2/am33xx/clock.c b/arch/arm/mach-omap2/am33xx/clock.c index 7c666be758af032a0f0591ea22efb9dbde3bf401..8c61547ee9c5f8d7d2c1e6480806dea5fb9d65b0 100644 --- a/arch/arm/mach-omap2/am33xx/clock.c +++ b/arch/arm/mach-omap2/am33xx/clock.c @@ -8,6 +8,7 @@ * Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/ */ #include <common.h> +#include <hang.h> #include <asm/arch/cpu.h> #include <asm/arch/clock.h> #include <asm/arch/hardware.h> diff --git a/arch/arm/mach-omap2/am33xx/fdt.c b/arch/arm/mach-omap2/am33xx/fdt.c index 1005a5be96d80dd64a029df045f43a76183e7142..c81dc808e5db7f1c63ceb92a75d9218fcf5b7239 100644 --- a/arch/arm/mach-omap2/am33xx/fdt.c +++ b/arch/arm/mach-omap2/am33xx/fdt.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <hang.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <malloc.h> diff --git a/arch/arm/mach-omap2/clocks-common.c b/arch/arm/mach-omap2/clocks-common.c index 5932d694d3009862400198f772a061860df29d55..9aff83e9dfdb86b2ee1ee1e64a322e3fad9aff59 100644 --- a/arch/arm/mach-omap2/clocks-common.c +++ b/arch/arm/mach-omap2/clocks-common.c @@ -13,6 +13,7 @@ * Rajendra Nayak <rnayak@ti.com> */ #include <common.h> +#include <hang.h> #include <i2c.h> #include <asm/omap_common.h> #include <asm/gpio.h> diff --git a/arch/arm/mach-omap2/emif-common.c b/arch/arm/mach-omap2/emif-common.c index bb81063c0f52c7d287337c4f6c486fa8b3f445f4..4658f67e84d321ea474a637b66144f9dd3605b6a 100644 --- a/arch/arm/mach-omap2/emif-common.c +++ b/arch/arm/mach-omap2/emif-common.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <hang.h> #include <init.h> #include <net.h> #include <asm/emif.h> diff --git a/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c b/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c index 9eda57c450dda2bfbc037cb1065dcd4b9c667bc2..598074ba21a770fad43958bb28551c62b1c1690a 100644 --- a/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c +++ b/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/utils.h> #include <asm/arch/dra7xx_iodelay.h> #include <asm/arch/omap.h> diff --git a/arch/arm/mach-omap2/omap5/fdt.c b/arch/arm/mach-omap2/omap5/fdt.c index 5ba8806dd744f3a49333f4201b40ee2dd8a7572e..c4adba31e6849658d73531b797783d6a1d355bf6 100644 --- a/arch/arm/mach-omap2/omap5/fdt.c +++ b/arch/arm/mach-omap2/omap5/fdt.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <hang.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <malloc.h> diff --git a/arch/arm/mach-omap2/sec-common.c b/arch/arm/mach-omap2/sec-common.c index f3df8affa3c2cd03156070735312958821590820..28b929f84f3854acc053495c9fbea94c5332442e 100644 --- a/arch/arm/mach-omap2/sec-common.c +++ b/arch/arm/mach-omap2/sec-common.c @@ -14,6 +14,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <init.h> #include <stdarg.h> diff --git a/arch/arm/mach-rockchip/bootrom.c b/arch/arm/mach-rockchip/bootrom.c index 10614c99d9c8b9d5baab8b15d6f5d2bfda19e4c0..1524eca27299c9c2964c59469edd3696a6a05ec8 100644 --- a/arch/arm/mach-rockchip/bootrom.c +++ b/arch/arm/mach-rockchip/bootrom.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/boot_mode.h> #include <asm/io.h> diff --git a/arch/arm/mach-rockchip/rk3188/rk3188.c b/arch/arm/mach-rockchip/rk3188/rk3188.c index 1b012f7f67aedfdcef220ddaf6ac0f0807af5e60..61d410d780e4ddf26c1383e8baf6732763e3fd5c 100644 --- a/arch/arm/mach-rockchip/rk3188/rk3188.c +++ b/arch/arm/mach-rockchip/rk3188/rk3188.c @@ -4,6 +4,7 @@ */ #include <common.h> #include <dm.h> +#include <hang.h> #include <syscon.h> #include <asm/io.h> #include <asm/arch-rockchip/bootrom.h> diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c index 514032a44aab5db692af928d2d5760d6fa34cc00..7d0e6fa1aff3a921b1e515042876b300508f9950 100644 --- a/arch/arm/mach-rockchip/spl.c +++ b/arch/arm/mach-rockchip/spl.c @@ -6,6 +6,7 @@ #include <common.h> #include <debug_uart.h> #include <dm.h> +#include <hang.h> #include <ram.h> #include <spl.h> #include <asm/arch-rockchip/bootrom.h> diff --git a/arch/arm/mach-rockchip/tpl.c b/arch/arm/mach-rockchip/tpl.c index c3734cb07082a358de11bca738f0c3bac0bced13..31a3eb4c285076a33a97af7189343dec0ca5050b 100644 --- a/arch/arm/mach-rockchip/tpl.c +++ b/arch/arm/mach-rockchip/tpl.c @@ -6,6 +6,7 @@ #include <common.h> #include <debug_uart.h> #include <dm.h> +#include <hang.h> #include <ram.h> #include <spl.h> #include <version.h> diff --git a/arch/arm/mach-socfpga/mailbox_s10.c b/arch/arm/mach-socfpga/mailbox_s10.c index 3254bc1805a5903169f3e8759a9d00625aac48c1..f30e7f80a2940cfa0ac6a8cb3dc3e235a4f8e322 100644 --- a/arch/arm/mach-socfpga/mailbox_s10.c +++ b/arch/arm/mach-socfpga/mailbox_s10.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <hang.h> #include <wait_bit.h> #include <asm/io.h> #include <asm/arch/mailbox_s10.h> diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c index db71105af34fd6bab4bc6ec00f6343b183277a18..2901b7db680f6a709a2d0f66e5534e9a97894b87 100644 --- a/arch/arm/mach-socfpga/misc.c +++ b/arch/arm/mach-socfpga/misc.c @@ -5,6 +5,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <asm/io.h> #include <errno.h> #include <fdtdec.h> diff --git a/arch/arm/mach-socfpga/spl_a10.c b/arch/arm/mach-socfpga/spl_a10.c index 7c38c5098169b92fd3c2d39d9038e7347bcbe15c..d9ef851054d85e67371649f8b163582d04d1dc64 100644 --- a/arch/arm/mach-socfpga/spl_a10.c +++ b/arch/arm/mach-socfpga/spl_a10.c @@ -5,6 +5,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <asm/io.h> #include <asm/pl310.h> #include <asm/u-boot.h> diff --git a/arch/arm/mach-socfpga/spl_agilex.c b/arch/arm/mach-socfpga/spl_agilex.c index c745d64114c05284ea1a23269f139a32abcae8a7..ecc1a35c4973962775540dd93e489be5e81ddfa0 100644 --- a/arch/arm/mach-socfpga/spl_agilex.c +++ b/arch/arm/mach-socfpga/spl_agilex.c @@ -8,6 +8,7 @@ #include <asm/u-boot.h> #include <asm/utils.h> #include <common.h> +#include <hang.h> #include <image.h> #include <spl.h> #include <asm/arch/clock_manager.h> diff --git a/arch/arm/mach-socfpga/spl_gen5.c b/arch/arm/mach-socfpga/spl_gen5.c index e19f55aa9b5e9fbfe85cb57aa441505c622002af..70f8455ddca470b7923df055bf1ad67e1930faf2 100644 --- a/arch/arm/mach-socfpga/spl_gen5.c +++ b/arch/arm/mach-socfpga/spl_gen5.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <asm/u-boot.h> #include <asm/utils.h> diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c index 8d96918cb456b5c01bac606cb448368a54460126..d89151d902417acd100746f9bf17ace716c717ee 100644 --- a/arch/arm/mach-socfpga/spl_s10.c +++ b/arch/arm/mach-socfpga/spl_s10.c @@ -4,6 +4,7 @@ * */ +#include <hang.h> #include <asm/io.h> #include <asm/u-boot.h> #include <asm/utils.h> diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c index a3b0d6f38252a63a4e564e86e4adb1f6aaf52a2f..ca4231cd0df4c58ddc7f34bfdc10d8ee96549b22 100644 --- a/arch/arm/mach-stm32mp/spl.c +++ b/arch/arm/mach-stm32mp/spl.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <hang.h> #include <spl.h> #include <asm/io.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-tegra/cboot.c b/arch/arm/mach-tegra/cboot.c index 0762144ecf4a3e843d79e9a0fdf00e68aa8e9bea..c5361ca73d4e630f92893a872ef4973909258e0e 100644 --- a/arch/arm/mach-tegra/cboot.c +++ b/arch/arm/mach-tegra/cboot.c @@ -7,6 +7,7 @@ #include <env.h> #include <fdt_support.h> #include <fdtdec.h> +#include <hang.h> #include <stdlib.h> #include <string.h> diff --git a/arch/arm/mach-uniphier/spl_board_init.c b/arch/arm/mach-uniphier/spl_board_init.c index d09c91ab42c864a2da4ebfad51d6bd63b63c23b9..c7262d70a5df9c84259243cbaa258850a50c06dd 100644 --- a/arch/arm/mach-uniphier/spl_board_init.c +++ b/arch/arm/mach-uniphier/spl_board_init.c @@ -6,6 +6,7 @@ #include <common.h> #include <debug_uart.h> +#include <hang.h> #include <spl.h> #include "init.h" diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c index 9b7c0be951b58be962a237e2ae2c36613e32e8ef..96ba90fb7a760faacd706fbe4e0b24d2e072581d 100644 --- a/arch/arm/mach-zynq/spl.c +++ b/arch/arm/mach-zynq/spl.c @@ -4,6 +4,7 @@ */ #include <common.h> #include <debug_uart.h> +#include <hang.h> #include <spl.h> #include <asm/io.h> diff --git a/arch/microblaze/cpu/exception.c b/arch/microblaze/cpu/exception.c index bdcbe0868599fdbd1851ce056f4b25a59ea8511b..b8dedc4e1958c59969e1ebc51d956eb7065139b9 100644 --- a/arch/microblaze/cpu/exception.c +++ b/arch/microblaze/cpu/exception.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/asm.h> void _hw_exception_handler (void) diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c index efd5acf3592bb5f8fa8747882d67145d95b0ef4b..2d6a41be2fd57d9b046b6ffe08288bc518fce358 100644 --- a/arch/microblaze/lib/bootm.c +++ b/arch/microblaze/lib/bootm.c @@ -12,6 +12,7 @@ #include <cpu_func.h> #include <env.h> #include <fdt_support.h> +#include <hang.h> #include <image.h> #include <u-boot/zlib.h> #include <asm/byteorder.h> diff --git a/arch/mips/lib/traps.c b/arch/mips/lib/traps.c index 6fe8ebd16bad08bd84628fc9167fd8303d4313d2..b8568c00fed53034ce48c6a368c6ebfd28bc392b 100644 --- a/arch/mips/lib/traps.c +++ b/arch/mips/lib/traps.c @@ -12,6 +12,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <init.h> #include <asm/mipsregs.h> #include <asm/addrspace.h> diff --git a/arch/mips/mach-ath79/ar934x/clk.c b/arch/mips/mach-ath79/ar934x/clk.c index fc4625d62a0077fcc727d5d808b782b6c7d117fa..09bdc253ae23a3225f94bf61394f3800aa74568b 100644 --- a/arch/mips/mach-ath79/ar934x/clk.c +++ b/arch/mips/mach-ath79/ar934x/clk.c @@ -5,6 +5,7 @@ #include <common.h> #include <clock_legacy.h> +#include <hang.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> diff --git a/arch/mips/mach-jz47xx/jz4780/jz4780.c b/arch/mips/mach-jz47xx/jz4780/jz4780.c index 0ae5e09e01985ec969e3d8ef4f5f243805e32bc5..015840de256725ddb60de744a395758ce3f9a99b 100644 --- a/arch/mips/mach-jz47xx/jz4780/jz4780.c +++ b/arch/mips/mach-jz47xx/jz4780/jz4780.c @@ -9,6 +9,7 @@ #include <config.h> #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <init.h> #include <asm/io.h> #include <asm/sections.h> diff --git a/arch/mips/mach-jz47xx/jz4780/sdram.c b/arch/mips/mach-jz47xx/jz4780/sdram.c index 5b25c8d002166ebc4f9e35ed55696290d1caf147..65afefe53e18a584873c84fae02e8ed7722465ba 100644 --- a/arch/mips/mach-jz47xx/jz4780/sdram.c +++ b/arch/mips/mach-jz47xx/jz4780/sdram.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <mach/jz4780.h> #include <mach/jz4780_dram.h> diff --git a/arch/nds32/lib/bootm.c b/arch/nds32/lib/bootm.c index a472f6a18737fc697b989eddb317022eeb45424f..1003bc87b9db8b0f360ca2e5d9ce747ca865627c 100644 --- a/arch/nds32/lib/bootm.c +++ b/arch/nds32/lib/bootm.c @@ -8,6 +8,7 @@ #include <common.h> #include <command.h> #include <env.h> +#include <hang.h> #include <image.h> #include <u-boot/zlib.h> #include <asm/byteorder.h> diff --git a/arch/nios2/cpu/traps.c b/arch/nios2/cpu/traps.c index 1c3cc03178c7e3d4eec68ea606fd43b2162820e4..087a05097d9e6ffdbf67ae01f77e728542f14333 100644 --- a/arch/nios2/cpu/traps.c +++ b/arch/nios2/cpu/traps.c @@ -4,8 +4,9 @@ * Scott McNutt <smcnutt@psyent.com> */ -#include <asm/ptrace.h> #include <common.h> +#include <hang.h> +#include <asm/ptrace.h> void trap_handler (struct pt_regs *regs) { @@ -21,5 +22,5 @@ void soft_emulation (struct pt_regs *regs) */ printf ("\n\n*** ERROR: unimplemented instruction @ %08x\n", regs->reg[29] - 4); - hang (); + hang(); } diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c index c43732f7c5c73ca8bcbbed13069ae26b1661fe5e..afcb75ba17a0aafb265d6f67d869d6de85109b23 100644 --- a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c +++ b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/fsl_lbc.h> #ifdef CONFIG_MPC83xx diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index d1d1573c622c9241b05dd116849a6ab4b5809e84..fad16901c5f2a032019b5a73d412aa9b510b6f45 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib/bootm.c @@ -10,6 +10,7 @@ #include <command.h> #include <dm.h> #include <fdt_support.h> +#include <hang.h> #include <dm/root.h> #include <image.h> #include <asm/byteorder.h> diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c index 3b25c5b7a75d735dfc7caa43017c996f0634dc48..512dce061967ce33d4ef4ca53dbb68d084298400 100644 --- a/arch/riscv/lib/interrupts.c +++ b/arch/riscv/lib/interrupts.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <hang.h> #include <irq_func.h> #include <asm/ptrace.h> #include <asm/system.h> diff --git a/arch/riscv/lib/reset.c b/arch/riscv/lib/reset.c index b8cecb309dcf96d5a67750668efff74c5bbfb2bf..ce3c1cf872b24de5c8f61d18ab05bce857bb04b4 100644 --- a/arch/riscv/lib/reset.c +++ b/arch/riscv/lib/reset.c @@ -5,6 +5,7 @@ #include <common.h> #include <command.h> +#include <hang.h> int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { diff --git a/arch/riscv/lib/spl.c b/arch/riscv/lib/spl.c index dc7577f751660dfdc744d316464b236ce01707c3..ae07bbe40a7ae04df527816828ab02bea9259226 100644 --- a/arch/riscv/lib/spl.c +++ b/arch/riscv/lib/spl.c @@ -5,6 +5,7 @@ */ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <spl.h> #include <asm/smp.h> diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index 44c68a39bc628e75115b6e693c9d5c30061a79a3..d5f683bbaae1fe2f539b0bd0a5c19f606c5f3014 100644 --- a/arch/sandbox/cpu/spl.c +++ b/arch/sandbox/cpu/spl.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <hang.h> #include <os.h> #include <spl.h> #include <asm/spl.h> diff --git a/arch/x86/cpu/i386/interrupt.c b/arch/x86/cpu/i386/interrupt.c index 991cf5c56bf5b3cc7f572de118e9787572cfab83..70edbe06e4c6150b6828129a767db81188cf2f42 100644 --- a/arch/x86/cpu/i386/interrupt.c +++ b/arch/x86/cpu/i386/interrupt.c @@ -13,6 +13,7 @@ #include <common.h> #include <dm.h> #include <efi_loader.h> +#include <hang.h> #include <init.h> #include <irq_func.h> #include <asm/control_regs.h> diff --git a/arch/x86/cpu/quark/mrc_util.c b/arch/x86/cpu/quark/mrc_util.c index 8a68ddba973859c9178f7623a75784843758db06..b0bc59b71ef5cc3ae87113c0937e7b5563ab8ca8 100644 --- a/arch/x86/cpu/quark/mrc_util.c +++ b/arch/x86/cpu/quark/mrc_util.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/arch/device.h> #include <asm/arch/mrc.h> #include <asm/arch/msg_port.h> diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c index 5443a862ab5ec5886d71b8e71f266d2cd662b22a..07d8f1f279ce28ed8161f5339489731314959784 100644 --- a/arch/x86/lib/bootm.c +++ b/arch/x86/lib/bootm.c @@ -9,6 +9,7 @@ #include <common.h> #include <command.h> +#include <hang.h> #include <dm/device.h> #include <dm/root.h> #include <errno.h> diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index f0e2bf053d74160145bf0ff5379a689d1077ad48..90baec2a175e3de4100764606db64b368104ac8b 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -7,6 +7,7 @@ #include <cpu_func.h> #include <debug_uart.h> #include <dm.h> +#include <hang.h> #include <irq_func.h> #include <malloc.h> #include <spl.h> diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c index 784e3a02def1279890fab986632e1005ed33b27c..34804b53ccaef2365969f49ca58dddbf3102e297 100644 --- a/arch/x86/lib/tpl.c +++ b/arch/x86/lib/tpl.c @@ -6,6 +6,7 @@ #include <common.h> #include <debug_uart.h> #include <dm.h> +#include <hang.h> #include <spl.h> #include <asm/cpu.h> #include <asm/mtrr.h> diff --git a/board/BuR/brppt2/board.c b/board/BuR/brppt2/board.c index 590e92b5a039c1c60fb139e48fcd9ad6fa455245..c91d2f9494d5183f57ea5016657ffdd76c8f4398 100644 --- a/board/BuR/brppt2/board.c +++ b/board/BuR/brppt2/board.c @@ -8,6 +8,7 @@ */ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <spl.h> #include <dm.h> #include <miiphy.h> diff --git a/board/armadeus/apf27/apf27.c b/board/armadeus/apf27/apf27.c index 75395d92cd1fb151bf7295182a308c7d60006bd0..29e0bf388d07a5aa9ba2e3f7d46df5cf7a7b98a1 100644 --- a/board/armadeus/apf27/apf27.c +++ b/board/armadeus/apf27/apf27.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <hang.h> #include <init.h> #include <jffs2/jffs2.h> #include <nand.h> diff --git a/board/bosch/shc/mux.c b/board/bosch/shc/mux.c index b04c5914f0d54fcd44660c04ab5e7a52fb776800..0a97eafea6c4ed737c63e1f62ff5d6370015d7c7 100644 --- a/board/bosch/shc/mux.c +++ b/board/bosch/shc/mux.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/arch/sys_proto.h> #include <asm/arch/hardware.h> #include <asm/arch/mux.h> diff --git a/board/compulab/cl-som-imx7/spl.c b/board/compulab/cl-som-imx7/spl.c index 6833608a539a90c5b80f07355535dbbe420b1c2e..360c4df17b314010c725168be4cef8f22764ee13 100644 --- a/board/compulab/cl-som-imx7/spl.c +++ b/board/compulab/cl-som-imx7/spl.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <hang.h> #include <init.h> #include <spl.h> #include <fsl_esdhc_imx.h> diff --git a/board/compulab/cm_fx6/spl.c b/board/compulab/cm_fx6/spl.c index 1ddf424e429e8a83cadbf13b2687a9f85b7bf97d..592d74109510082d494173c18b76bd5bdfc9dbfb 100644 --- a/board/compulab/cm_fx6/spl.c +++ b/board/compulab/cm_fx6/spl.c @@ -9,6 +9,7 @@ #include <common.h> #include <clock_legacy.h> +#include <hang.h> #include <init.h> #include <spl.h> #include <asm/io.h> diff --git a/board/compulab/cm_t43/spl.c b/board/compulab/cm_t43/spl.c index fdab9c3fd1d107bc32669636ecaa29bdd2a80cbd..016c63a509a5623d8bf78f94364099796622268e 100644 --- a/board/compulab/cm_t43/spl.c +++ b/board/compulab/cm_t43/spl.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <hang.h> #include <init.h> #include <spl.h> #include <i2c.h> diff --git a/board/engicam/common/board.c b/board/engicam/common/board.c index 6472d382c93581c471ef6b4214cb5fa0811b9287..9483516ca0dbaedfa51a7642426b8964fe4b93f3 100644 --- a/board/engicam/common/board.c +++ b/board/engicam/common/board.c @@ -8,6 +8,7 @@ #include <common.h> #include <command.h> #include <env.h> +#include <hang.h> #include <init.h> #include <mmc.h> #include <asm/arch/clock.h> diff --git a/board/firefly/firefly-rk3288/firefly-rk3288.c b/board/firefly/firefly-rk3288/firefly-rk3288.c index a3f784f0a3a0ef1232aa9cb041db3010a6190270..a2b0eb5a996c09b687cffc0fc413ac86085549b4 100644 --- a/board/firefly/firefly-rk3288/firefly-rk3288.c +++ b/board/firefly/firefly-rk3288/firefly-rk3288.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <hang.h> #ifdef CONFIG_SPL_BUILD static int setup_led(void) diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c index d125dc9317ef08dfb92d84e47e5305921dbab4d7..a26fc96b91dabe5955ada3aedd234703a7956cca 100644 --- a/board/freescale/imx8mm_evk/spl.c +++ b/board/freescale/imx8mm_evk/spl.c @@ -5,6 +5,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <spl.h> #include <asm/io.h> #include <asm/mach-imx/iomux-v3.h> diff --git a/board/freescale/imx8mn_evk/spl.c b/board/freescale/imx8mn_evk/spl.c index 7bc22d905f6da633cc6285b3bdbb19e1b299180d..7aed14c52b684ce8b3a58a116c5736464394fc08 100644 --- a/board/freescale/imx8mn_evk/spl.c +++ b/board/freescale/imx8mn_evk/spl.c @@ -6,6 +6,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <spl.h> #include <asm/io.h> #include <asm/mach-imx/iomux-v3.h> diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c index 7802cef4a7ac417784595cc66261216d53bed602..0b20668e2b30a234a1f36c6315bab5345e946a4d 100644 --- a/board/freescale/imx8mp_evk/spl.c +++ b/board/freescale/imx8mp_evk/spl.c @@ -6,6 +6,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <spl.h> #include <asm/io.h> #include <errno.h> diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c index 9164cfb9d87b2131549b9558f4faf299de61cc59..e442510f44d5023ae50055fb97d00078813ea597 100644 --- a/board/freescale/imx8mq_evk/spl.c +++ b/board/freescale/imx8mq_evk/spl.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <errno.h> #include <asm/io.h> diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c index 90c1824e467e98f4b10e8c5bce7576fb4b7dc295..0f665c7bc68fa94445c14d7c05ab1532ddb5a22b 100644 --- a/board/freescale/ls1012ardb/ls1012ardb.c +++ b/board/freescale/ls1012ardb/ls1012ardb.c @@ -5,6 +5,7 @@ #include <common.h> #include <fdt_support.h> +#include <hang.h> #include <i2c.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index c85243f58ba54cfb1b7de4db06830fd5f27f2bb3..71fca8ca1e1aa4b5d67b7e5438dc5ef18b722e5e 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -6,6 +6,7 @@ #include <common.h> #include <command.h> #include <env.h> +#include <hang.h> #include <hwconfig.h> #include <init.h> #include <pci.h> diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c index b0891379a170f7d87667a554eff9014fe1595e0c..80fec5f9cf3ef22b9aaf4df85c04b1233a4ac21e 100644 --- a/board/gateworks/gw_ventana/gw_ventana_spl.c +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c @@ -6,6 +6,7 @@ #include <common.h> #include <env.h> +#include <hang.h> #include <asm/io.h> #include <asm/arch/crm_regs.h> #include <asm/arch/mx6-ddr.h> diff --git a/board/gdsys/p1022/controlcenterd-id.c b/board/gdsys/p1022/controlcenterd-id.c index 04d380956658901f632dd70108c8e540fb87cacc..ad56dd7d019d98369adf6ce2eca061b21d78cda3 100644 --- a/board/gdsys/p1022/controlcenterd-id.c +++ b/board/gdsys/p1022/controlcenterd-id.c @@ -14,6 +14,7 @@ #include <command.h> #include <dm.h> #include <env.h> +#include <hang.h> #include <malloc.h> #include <fs.h> #include <i2c.h> diff --git a/board/renesas/alt/alt.c b/board/renesas/alt/alt.c index 70c14d9f33d4c7fc9bf377d9a226c5b58800a15d..a6d7cb48a249198b0917ed1ae077135b7122b628 100644 --- a/board/renesas/alt/alt.c +++ b/board/renesas/alt/alt.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> #include <env.h> +#include <hang.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> diff --git a/board/renesas/condor/condor.c b/board/renesas/condor/condor.c index 11fbd5b07d73364e256a39d1e0631dd0abc66429..6505beda8129c8897893a22652e4f33015b8c2b7 100644 --- a/board/renesas/condor/condor.c +++ b/board/renesas/condor/condor.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> diff --git a/board/renesas/draak/draak.c b/board/renesas/draak/draak.c index 7ad21f98129a9967a27d1683a6ccdae5985e131c..2f9364c484e9d55e404f47e89a36359c26865855 100644 --- a/board/renesas/draak/draak.c +++ b/board/renesas/draak/draak.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <malloc.h> #include <netdev.h> #include <dm.h> diff --git a/board/renesas/eagle/eagle.c b/board/renesas/eagle/eagle.c index d5f40717d4dd150e2bab67e584b5079884a6b43b..cf06a173e49da0344dd013f30439ae78fbd0ee4e 100644 --- a/board/renesas/eagle/eagle.c +++ b/board/renesas/eagle/eagle.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <malloc.h> #include <netdev.h> #include <dm.h> diff --git a/board/renesas/ebisu/ebisu.c b/board/renesas/ebisu/ebisu.c index b608c61e23a60a64625d5c998bba66cc66011d49..81d7f8eafab49a9fcd00a2649a08eaebe4282213 100644 --- a/board/renesas/ebisu/ebisu.c +++ b/board/renesas/ebisu/ebisu.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <malloc.h> #include <netdev.h> #include <dm.h> diff --git a/board/renesas/gose/gose.c b/board/renesas/gose/gose.c index c137da64b3796bf7e6001ac3aceaa075d4202d9a..eb6ee6f6a4c3f4d427f0087ed4b0edb09dc31fde 100644 --- a/board/renesas/gose/gose.c +++ b/board/renesas/gose/gose.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> #include <env.h> +#include <hang.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> diff --git a/board/renesas/koelsch/koelsch.c b/board/renesas/koelsch/koelsch.c index ff7e458b3ce99ec928b271242ad4bec7c933e132..e09d3d0a634041314a3938f15b9e966b1013a4bd 100644 --- a/board/renesas/koelsch/koelsch.c +++ b/board/renesas/koelsch/koelsch.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpu_func.h> #include <env.h> +#include <hang.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c index d6b388feade0cc6665691824638f1fc6cf61df6e..9ac951592584c27d28b65719d6754d336808d963 100644 --- a/board/renesas/lager/lager.c +++ b/board/renesas/lager/lager.c @@ -11,6 +11,7 @@ #include <cpu_func.h> #include <env.h> #include <env_internal.h> +#include <hang.h> #include <malloc.h> #include <netdev.h> #include <dm.h> diff --git a/board/renesas/porter/porter.c b/board/renesas/porter/porter.c index b9c29349cc6ec2fcc22b42313b7b4cc504be347d..097710b4791c62d98de602dfbc39b9bbe3905879 100644 --- a/board/renesas/porter/porter.c +++ b/board/renesas/porter/porter.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpu_func.h> #include <env.h> +#include <hang.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> diff --git a/board/renesas/silk/silk.c b/board/renesas/silk/silk.c index b69e7035abdcb3a21e06e54e1447412c6e7981e4..e7cbd7577645a54d1af75b9d97b7bef62b93fb73 100644 --- a/board/renesas/silk/silk.c +++ b/board/renesas/silk/silk.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpu_func.h> #include <env.h> +#include <hang.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index ee2fc7971eb079c8097f453982577d66e8b70b79..5d4646d14c875088b63867ac0e74feb362f0bdbc 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -8,6 +8,7 @@ #include <cros_ec.h> #include <errno.h> #include <fdtdec.h> +#include <hang.h> #include <init.h> #include <spi.h> #include <tmu.h> diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 1d4a54c9026db6e616d7ca11411cf0250003951e..9c345c7a70233d2ffa523b967ed2e4ad34d7cbab 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -12,6 +12,7 @@ #include <env_internal.h> #include <g_dnl.h> #include <generic-phy.h> +#include <hang.h> #include <i2c.h> #include <init.h> #include <led.h> diff --git a/board/sunxi/board.c b/board/sunxi/board.c index a7c4f7f71c9973425ab27094e2648398783869a1..6afea6ef42e42d6137ffc22319659512f1071ee6 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -13,6 +13,7 @@ #include <common.h> #include <dm.h> #include <env.h> +#include <hang.h> #include <init.h> #include <mmc.h> #include <axp_pmic.h> diff --git a/board/technexion/pico-imx6ul/spl.c b/board/technexion/pico-imx6ul/spl.c index d3cbaf3989cd658e2919da225ffe89f56249aa60..41b053ab1c1ddb3abacd0787b768fe41b70dec07 100644 --- a/board/technexion/pico-imx6ul/spl.c +++ b/board/technexion/pico-imx6ul/spl.c @@ -2,6 +2,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <init.h> #include <asm/arch/clock.h> #include <asm/arch/iomux.h> diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index da98c1c739a7d0641376745f3b367d6b41b5693b..6554c0eb11869d8ebd645ab74b0ea36e18fdaefd 100644 --- a/board/ti/ks2_evm/board.c +++ b/board/ti/ks2_evm/board.c @@ -9,6 +9,7 @@ #include <common.h> #include "board.h" #include <env.h> +#include <hang.h> #include <init.h> #include <spl.h> #include <exports.h> diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c index 920d0d3420f141a3e011098d64beb7013d48dbaf..c6a14a05546959a7ae5a04abfef18e0053dde61b 100644 --- a/board/ti/ks2_evm/board_k2g.c +++ b/board/ti/ks2_evm/board_k2g.c @@ -8,6 +8,7 @@ #include <common.h> #include <eeprom.h> #include <env.h> +#include <hang.h> #include <init.h> #include <asm/arch/clock.h> #include <asm/ti-common/keystone_net.h> diff --git a/board/ti/ks2_evm/mux-k2g.h b/board/ti/ks2_evm/mux-k2g.h index 6aa785ea42502d200e61b5b6e1e23d6b997309c8..3ecf571c5c37827195560e45a87339fec945afbd 100644 --- a/board/ti/ks2_evm/mux-k2g.h +++ b/board/ti/ks2_evm/mux-k2g.h @@ -7,6 +7,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <asm/arch/mux-k2g.h> #include <asm/arch/hardware.h> diff --git a/common/board_f.c b/common/board_f.c index 3c6877da33337e616965ce06eeb3645ba6977da3..3f0132a6e339fd23e88857c0a83dae1ad8825d79 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -20,6 +20,7 @@ #include <env_internal.h> #include <fdtdec.h> #include <fs.h> +#include <hang.h> #include <i2c.h> #include <init.h> #include <initcall.h> diff --git a/common/board_r.c b/common/board_r.c index 668496abedc68639c102ca8ed7530c9737cd0414..8a0c1114e77ac2ed644f2324cbaaa0c7cf5cae72 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -13,6 +13,7 @@ #include <api.h> #include <cpu_func.h> #include <exports.h> +#include <hang.h> #include <image.h> #include <irq_func.h> #include <net.h> diff --git a/common/bootstage.c b/common/bootstage.c index 79972e46f29f22f0cc2201d28934aae8c58c4b00..d2ed33663b7193b574722e5f3d0aa441dd571149 100644 --- a/common/bootstage.c +++ b/common/bootstage.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <hang.h> #include <malloc.h> #include <sort.h> #include <spl.h> diff --git a/common/cli.c b/common/cli.c index 67ceb635a67776ef3315e156e5b9e40836a2c1a6..7ffe902b88dd13c06d67035a3eac91047a9aeee5 100644 --- a/common/cli.c +++ b/common/cli.c @@ -15,6 +15,7 @@ #include <console.h> #include <env.h> #include <fdtdec.h> +#include <hang.h> #include <malloc.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/common/spl/spl.c b/common/spl/spl.c index 19085ad2701d901cb908bbba72d7aa9df28714e1..932e6ab98ac4cd5d4c0fd5263bcc9c54183f1ff6 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -11,6 +11,7 @@ #include <binman_sym.h> #include <dm.h> #include <handoff.h> +#include <hang.h> #include <irq_func.h> #include <serial.h> #include <spl.h> diff --git a/common/spl/spl_opensbi.c b/common/spl/spl_opensbi.c index 6404373ecadfbdd9c713f2209879051aa3cf2159..a136073fdbb4b6e29182c4b28e7a613a467a7001 100644 --- a/common/spl/spl_opensbi.c +++ b/common/spl/spl_opensbi.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> #include <errno.h> +#include <hang.h> #include <spl.h> #include <asm/smp.h> #include <opensbi.h> diff --git a/drivers/cache/cache-ncore.c b/drivers/cache/cache-ncore.c index e3aca3607138e90a893bfd83fbda06588160d28f..0aab7ee19147bbd77a215912422ebb2b6fcf46b7 100644 --- a/drivers/cache/cache-ncore.c +++ b/drivers/cache/cache-ncore.c @@ -4,6 +4,7 @@ * */ #include <dm.h> +#include <hang.h> #include <wait_bit.h> #include <asm/io.h> diff --git a/drivers/cache/cache-v5l2.c b/drivers/cache/cache-v5l2.c index d367171b3658be00b2c74a4bf8d85883aafc8e43..1373e7c387d8bce94b5d9723d2df3ee0c9d3db39 100644 --- a/drivers/cache/cache-v5l2.c +++ b/drivers/cache/cache-v5l2.c @@ -8,6 +8,7 @@ #include <command.h> #include <cache.h> #include <dm.h> +#include <hang.h> #include <asm/io.h> #include <dm/ofnode.h> diff --git a/drivers/ddr/altera/sdram_agilex.c b/drivers/ddr/altera/sdram_agilex.c index 0cbcd14056070de04efd57978f2a398526b11f97..626fb724d4e557f99218f1a41ee48e64695e8625 100644 --- a/drivers/ddr/altera/sdram_agilex.c +++ b/drivers/ddr/altera/sdram_agilex.c @@ -9,6 +9,7 @@ #include <errno.h> #include <div64.h> #include <fdtdec.h> +#include <hang.h> #include <ram.h> #include <reset.h> #include "sdram_soc64.h" diff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c index 6beba01128e6321415efb3872b76307b8c10669f..0b36d6c027dd27d3509dbb975cf80a9f3d064bdc 100644 --- a/drivers/ddr/altera/sdram_s10.c +++ b/drivers/ddr/altera/sdram_s10.c @@ -10,6 +10,7 @@ #include <errno.h> #include <div64.h> #include <fdtdec.h> +#include <hang.h> #include <init.h> #include <ram.h> #include <reset.h> diff --git a/drivers/ddr/altera/sdram_soc64.c b/drivers/ddr/altera/sdram_soc64.c index 985a108b1c5d893ad28825c935dd89321ec04289..e0d04ccca2812a7cb25aa71dca8c0160e804e421 100644 --- a/drivers/ddr/altera/sdram_soc64.c +++ b/drivers/ddr/altera/sdram_soc64.c @@ -10,6 +10,7 @@ #include <errno.h> #include <div64.h> #include <fdtdec.h> +#include <hang.h> #include <ram.h> #include <reset.h> #include "sdram_soc64.h" diff --git a/drivers/misc/imx8/scu_api.c b/drivers/misc/imx8/scu_api.c index b2fdeef13ab0d991941cc19acf4298ec60e11752..b34191753b1becccc95dc9fd0e009fc2f9025757 100644 --- a/drivers/misc/imx8/scu_api.c +++ b/drivers/misc/imx8/scu_api.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include <dm.h> #include <asm/arch/sci/sci.h> diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c index 3021c3d6d4f6c6eb2698df9911980b2e161cb8e5..afe55fad9de6fa7c845bdbb81213e18d6b7338cc 100644 --- a/drivers/mmc/fsl_esdhc_spl.c +++ b/drivers/mmc/fsl_esdhc_spl.c @@ -5,6 +5,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <mmc.h> #include <malloc.h> diff --git a/drivers/mtd/nand/raw/mxc_nand_spl.c b/drivers/mtd/nand/raw/mxc_nand_spl.c index 6c03db8428f65d42fad0ec88cf879212c2da7033..e1e542519d816e6a4d702c947bfe4eb3cbee906d 100644 --- a/drivers/mtd/nand/raw/mxc_nand_spl.c +++ b/drivers/mtd/nand/raw/mxc_nand_spl.c @@ -11,6 +11,7 @@ */ #include <common.h> +#include <hang.h> #include <nand.h> #include <asm/arch/imx-regs.h> #include <asm/io.h> diff --git a/drivers/mtd/spi/fsl_espi_spl.c b/drivers/mtd/spi/fsl_espi_spl.c index 580b1e24b736c2cddf0e549143a215dd62483756..5c41d7558c2449bd271aae0a1faea99c461a8146 100644 --- a/drivers/mtd/spi/fsl_espi_spl.c +++ b/drivers/mtd/spi/fsl_espi_spl.c @@ -5,6 +5,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <spi_flash.h> #include <malloc.h> diff --git a/drivers/net/fsl_mcdmafec.c b/drivers/net/fsl_mcdmafec.c index 7838fb5c10a75df103fbc9bf10a5ee509f2d702b..45954cecb6b6a9fa0d76f59815a3a710d6495f51 100644 --- a/drivers/net/fsl_mcdmafec.c +++ b/drivers/net/fsl_mcdmafec.c @@ -12,6 +12,7 @@ #include <common.h> #include <env.h> +#include <hang.h> #include <malloc.h> #include <command.h> #include <config.h> diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index 4ec24362d067981e1c7656ed2aca6ff91ab7bf74..8caf0ba6b1ca3b3dbbabff2b6de37901aa5e50f8 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -12,6 +12,7 @@ #include <common.h> #include <env.h> +#include <hang.h> #include <malloc.h> #include <command.h> #include <net.h> diff --git a/drivers/net/mpc8xx_fec.c b/drivers/net/mpc8xx_fec.c index 0a8098519226abc51460c10fa5e5c873cfca23ed..69b2174ab3d676280f38083026977804da53b202 100644 --- a/drivers/net/mpc8xx_fec.c +++ b/drivers/net/mpc8xx_fec.c @@ -6,6 +6,7 @@ #include <common.h> #include <command.h> +#include <hang.h> #include <malloc.h> #include <net.h> #include <netdev.h> diff --git a/drivers/ram/k3-j721e/k3-j721e-ddrss.c b/drivers/ram/k3-j721e/k3-j721e-ddrss.c index 9feb0aa766e519814fc5e27e2226113261e423fd..a9b7d40890b3cc9c004f28a39b163a3ace82c23d 100644 --- a/drivers/ram/k3-j721e/k3-j721e-ddrss.c +++ b/drivers/ram/k3-j721e/k3-j721e-ddrss.c @@ -8,6 +8,7 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <hang.h> #include <ram.h> #include <asm/io.h> #include <power-domain.h> diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c index 9df8f8f4af009e6315b997cf1a2ec7386c4cfa9c..8addee8cc30e03d39e61a5f1f378373c2e39e466 100644 --- a/drivers/ram/rockchip/dmc-rk3368.c +++ b/drivers/ram/rockchip/dmc-rk3368.c @@ -6,6 +6,7 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <hang.h> #include <dt-bindings/memory/rk3368-dmc.h> #include <dt-structs.h> #include <ram.h> diff --git a/drivers/ram/rockchip/sdram_rk3188.c b/drivers/ram/rockchip/sdram_rk3188.c index d3e4316ef019b44ef3efafaa9023f037315b8144..9b5eb38eccd423d7bf6c62116e0185bcb3a1b066 100644 --- a/drivers/ram/rockchip/sdram_rk3188.c +++ b/drivers/ram/rockchip/sdram_rk3188.c @@ -11,6 +11,7 @@ #include <dm.h> #include <dt-structs.h> #include <errno.h> +#include <hang.h> #include <ram.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rk3288.c b/drivers/ram/rockchip/sdram_rk3288.c index 690751d0747eb3ea01174db1b3e5a153690bedbe..3eb14cdb32c079979122a6dfaeacc4363bde28fd 100644 --- a/drivers/ram/rockchip/sdram_rk3288.c +++ b/drivers/ram/rockchip/sdram_rk3288.c @@ -11,6 +11,7 @@ #include <dm.h> #include <dt-structs.h> #include <errno.h> +#include <hang.h> #include <ram.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index bf5f39215d1df9521e270399fb69dea5450b7b3f..baeaeaac8ea2fa236503358f2162776c6c96b55a 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -6,6 +6,7 @@ #include <common.h> #include <env_internal.h> +#include <hang.h> #include <serial.h> #include <stdio_dev.h> #include <post.h> diff --git a/drivers/serial/serial_pxa.c b/drivers/serial/serial_pxa.c index cf4d8f64427240d03d12def7b43e991a29074070..6f8f7e1198ae87af1381ad14d0163e3897f110c0 100644 --- a/drivers/serial/serial_pxa.c +++ b/drivers/serial/serial_pxa.c @@ -20,6 +20,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/arch/pxa-regs.h> #include <asm/arch/regs-uart.h> #include <asm/io.h> diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c index 8eff6036e74b32d4a71257cb66ad76b907fb7680..51fdb1055e3b36c17933c45d1716222adfe98a0e 100644 --- a/drivers/sysreset/sysreset-uclass.c +++ b/drivers/sysreset/sysreset-uclass.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> +#include <hang.h> #include <sysreset.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c index 584564bac2b04e69c8ee8a61392d73be4fce423d..4d7723621d0b3b08c902c3a86acfe11856eec8d8 100644 --- a/drivers/usb/musb/musb_udc.c +++ b/drivers/usb/musb/musb_udc.c @@ -38,6 +38,7 @@ */ #include <common.h> +#include <hang.h> #include <serial.h> #include <usbdevice.h> #include <usb/udc.h> diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index 69e408b6c1bc61c55096824eb1aa06970acd3737..ec998901ab9b82446771228ba2f479d63d417f46 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <hang.h> #include <asm/io.h> #include "../gadget/dwc2_udc_otg_priv.h" diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c index 62bf25e9cc04ff7c09f04e2b49c4871b50ee6abc..01762df019bfd2def99ef5382dbe858d5aa9b79f 100644 --- a/drivers/watchdog/imx_watchdog.c +++ b/drivers/watchdog/imx_watchdog.c @@ -7,6 +7,7 @@ #include <common.h> #include <cpu_func.h> #include <dm.h> +#include <hang.h> #include <asm/io.h> #include <wdt.h> #include <watchdog.h> diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index dafd2b56a8e51dc71280fcb7d0b86843c6e1e946..669a32320d44cd5443ab9556eec72682e8fe0ed9 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> +#include <hang.h> #include <wdt.h> #include <asm/io.h> diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c index bbfac4f0f9b4a189b39a55c176a540a46e0cbc19..cf1c52747397ff9e3f253caf1a7a89b2ae55e2d7 100644 --- a/drivers/watchdog/wdt-uclass.c +++ b/drivers/watchdog/wdt-uclass.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <hang.h> #include <wdt.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/examples/api/libgenwrap.c b/examples/api/libgenwrap.c index 67b2d641fc7c19de09dc15dd78bbf09f554697b7..769dcc7038523b464c6ff0aa0a2b430f042a53cf 100644 --- a/examples/api/libgenwrap.c +++ b/examples/api/libgenwrap.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <hang.h> #include <linux/types.h> #include <api_public.h> @@ -41,7 +42,7 @@ void *malloc (size_t len) return NULL; } -void hang (void) +void hang(void) { while (1) ; } diff --git a/include/common.h b/include/common.h index b25744854c71c8c3c31f8284a3311dd5c39853bf..ca08db04670c595b4fb0b2b0dc4ea3f82d63a3a4 100644 --- a/include/common.h +++ b/include/common.h @@ -52,11 +52,6 @@ */ #include <init.h> -/* - * Function Prototypes - */ -void hang (void) __attribute__ ((noreturn)); - #include <display_options.h> /* lib/uuid.c */ diff --git a/include/hang.h b/include/hang.h new file mode 100644 index 0000000000000000000000000000000000000000..27cda493592ded1024d1aca8a398d0d50c7d7d2b --- /dev/null +++ b/include/hang.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2000-2009 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + */ + +#ifndef __HANG_H +#define __HANG_H + +#ifndef __ASSEMBLY__ +/** + * hang() - Print a message and stop execution + * + * This shows a 'hang' message where possible and then goes into an infinite + * loop. This is called by panic() if CONFIG_PANIC_HANG is enabled. + * + * This function does not return. + */ +void hang(void) __attribute__ ((noreturn)); +#endif + +#endif diff --git a/lib/fdtdec.c b/lib/fdtdec.c index f1bdc9f2e2ca726557ca896e728dd736bc9d2868..17051d409c4998ad5b47382e378bd9a267eab4ce 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -7,6 +7,7 @@ #include <common.h> #include <boot_fit.h> #include <dm.h> +#include <hang.h> #include <init.h> #include <dm/of_extra.h> #include <env.h> diff --git a/lib/hang.c b/lib/hang.c index 4d026a3e64c15c60ba5ea58aede86f3adb26b168..578ac78d45306f949d9ee237c27b17e164c5d317 100644 --- a/lib/hang.c +++ b/lib/hang.c @@ -9,6 +9,7 @@ #include <common.h> #include <bootstage.h> +#include <hang.h> #include <os.h> /** diff --git a/lib/libavb/avb_sysdeps_posix.c b/lib/libavb/avb_sysdeps_posix.c index 4ccf41e4283491c7e13d921b7e1c11ef9abc270e..0bb0cc1498e5a97ab2742d20408f3966f1524800 100644 --- a/lib/libavb/avb_sysdeps_posix.c +++ b/lib/libavb/avb_sysdeps_posix.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 The Android Open Source Project */ +#include <hang.h> #include <stdarg.h> #include <stdlib.h> diff --git a/lib/panic.c b/lib/panic.c index bae8a359354216e7b8117d4364af872ebdebbd61..8e72c265a617e1f2223a008e5375829537b8c49b 100644 --- a/lib/panic.c +++ b/lib/panic.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <hang.h> #if !defined(CONFIG_PANIC_HANG) #include <command.h> #endif diff --git a/lib/zlib/zutil.c b/lib/zlib/zutil.c index 227343e48d3fb1305a229ac4b72559bda6351b48..609aac55ce11f015d79f805b29f3c7eec8d014cf 100644 --- a/lib/zlib/zutil.c +++ b/lib/zlib/zutil.c @@ -6,6 +6,7 @@ /* @(#) $Id$ */ #include "zutil.h" +#include <hang.h> #ifndef NO_DUMMY_DECL struct internal_state {int dummy;}; /* for buggy compilers */ @@ -34,7 +35,7 @@ void z_error (m) char *m; { fprintf(stderr, "%s\n", m); - hang (); + hang(); } #endif