hang.h 487 B

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