This commit is contained in:
alexvoste
2026-05-07 02:22:25 +03:00
commit 1a9fd27a31
226 changed files with 29188 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef PANIC_H
#define PANIC_H
#include <stdint.h>
#include "../interrupts/interrupts.h"
__attribute__((noreturn))
void kernel_panic(const char *msg);
__attribute__((noreturn))
void kernel_panic_regs(const char *msg, struct int_frame_t *regs);
#define KPANIC(msg) \
kernel_panic("[" __FILE__ ":" STRINGIFY(__LINE__) "] " msg)
#define STRINGIFY_IMPL(x) #x
#define STRINGIFY(x) STRINGIFY_IMPL(x)
#endif