diff options
Diffstat (limited to 'firmware/export/panic.h')
| -rw-r--r-- | firmware/export/panic.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/panic.h b/firmware/export/panic.h index b0325aa..7767c67 100644 --- a/firmware/export/panic.h +++ b/firmware/export/panic.h @@ -22,8 +22,12 @@ #ifndef __PANIC_H__ #define __PANIC_H__ +#include "config.h" #include "gcc_extensions.h" +#if defined(CPU_ARM) +void panicf( const char *fmt, ... ) __attribute__ ((naked)) ATTRIBUTE_PRINTF(1, 2); +#else void panicf( const char *fmt, ... ) ATTRIBUTE_PRINTF(1, 2); - +#endif #endif /* __PANIC_H__ */ |