2
0

die.c 402 B

12345678910111213141516171819202122
  1. /*
  2. * Die while blinking LEDs
  3. */
  4. #include "common.h"
  5. #include "io.h"
  6. void _die(void)
  7. {
  8. unsigned int led = 2;
  9. while (1) {
  10. set_leds(led);
  11. led ^= 7;
  12. udelay(250000);
  13. }
  14. }
  15. /* We never exit, so don't bother carrying a bunch of crap with it */
  16. #pragma GCC diagnostic ignored "-Wattribute-alias"
  17. void _exit(int) __attribute__((alias("_die")));
  18. void exit(int) __attribute__((alias("_die")));