Commit db41d65a authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

common: Move hang() to the same header as panic()



At present panic() is in the vsprintf.h header file. That does not seem
like an obvious choice for hang(), even though it relates to panic(). So
let's put hang() in its own header.
Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
[trini: Migrate a few more files]
Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
parent 49acd56e
......@@ -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>
......
......@@ -8,6 +8,7 @@
#include <common.h>
#include <config.h>
#include <hang.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
......
......@@ -9,6 +9,7 @@
#include <common.h>
#include <cpu_func.h>
#include <hang.h>
#include <asm/system.h>
#include <asm/armv8/mmu.h>
......
......@@ -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>
......
......@@ -7,6 +7,7 @@
#ifndef _ASM_ARMV8_MMU_H_
#define _ASM_ARMV8_MMU_H_
#include <hang.h>
#include <linux/const.h>
/*
......
......@@ -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>
......
......@@ -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();
}
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -6,6 +6,7 @@
#include <clk.h>
#include <common.h>
#include <hang.h>
#include <spl.h>
#include "init.h"
......
......@@ -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>
......
......@@ -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>
......
......@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <hang.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include <malloc.h>
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment