Simon Glass | db41d65 | 2019-12-28 10:45:07 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * (C) Copyright 2000-2009 |
| 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __HANG_H |
| 8 | #define __HANG_H |
| 9 | |
| 10 | #ifndef __ASSEMBLY__ |
| 11 | /** |
| 12 | * hang() - Print a message and stop execution |
| 13 | * |
| 14 | * This shows a 'hang' message where possible and then goes into an infinite |
| 15 | * loop. This is called by panic() if CONFIG_PANIC_HANG is enabled. |
| 16 | * |
| 17 | * This function does not return. |
| 18 | */ |
| 19 | void hang(void) __attribute__ ((noreturn)); |
| 20 | #endif |
| 21 | |
| 22 | #endif |