mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-03-07 08:47:20 +00:00
utils.h: add panic() macro
Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
parent
51bf5c870a
commit
c0bacd2f12
1 changed files with 6 additions and 0 deletions
|
@ -240,4 +240,10 @@ int debug_printf(const char *fmt, ...);
|
|||
void udelay(u32 d);
|
||||
void reboot(void);
|
||||
|
||||
#define panic(fmt, ...) \
|
||||
do { \
|
||||
debug_printf(fmt, ##__VA_ARGS__); \
|
||||
reboot(); \
|
||||
} while (0)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue