kernel: add panic() function that accepts a cpu_context
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
|
||||
#include <socks/compiler.h>
|
||||
|
||||
extern void __noreturn panic(const char *fmt, ...);
|
||||
struct cpu_context;
|
||||
|
||||
#define panic(...) panic_irq(NULL, __VA_ARGS__)
|
||||
|
||||
extern void __noreturn panic_irq(struct cpu_context *ctx, const char *fmt, ...);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user