kernel: add panic() function that accepts a cpu_context

This commit is contained in:
2023-05-03 19:22:12 +01:00
parent 390fe86657
commit a52571eb19
3 changed files with 11 additions and 4 deletions

View File

@@ -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