implement kernel panic

This commit is contained in:
2025-07-18 12:36:18 +03:00
parent 550a36ba88
commit 8fae948c32
3 changed files with 19 additions and 6 deletions

View File

@@ -4,3 +4,9 @@ struct sbiret {
long error;
long value;
};
#define PANIC(fmt, ...) \
do { \
printf("YOU GOT A PANIC ERROR: %s:%d: " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
while (1) {} \
} while (0)