diff options
author | dzwdz | 2022-05-03 19:02:56 +0200 |
---|---|---|
committer | dzwdz | 2022-05-03 19:02:56 +0200 |
commit | 600dd0bb30d9d8d5c7645156c1c50ad68ec1b334 (patch) | |
tree | 511b10b0f4481ba532a99a8fc822adbb76d9c760 /src/kernel/arch/generic.h | |
parent | 775e4fd747d567916658b2b26e8e3c5eba6b5a54 (diff) |
kernel: stacktraces on panic()
Diffstat (limited to 'src/kernel/arch/generic.h')
-rw-r--r-- | src/kernel/arch/generic.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/arch/generic.h b/src/kernel/arch/generic.h index f8dfe51..fd44e38 100644 --- a/src/kernel/arch/generic.h +++ b/src/kernel/arch/generic.h @@ -2,8 +2,9 @@ #include <kernel/arch/i386/registers.h> #include <shared/types.h> -#include <stdbool.h> #include <stdarg.h> +#include <stdbool.h> +#include <stddef.h> // i have no idea where else to put it // some code assumes that it's a power of 2 @@ -39,3 +40,6 @@ void *pagedir_virt2phys(struct pagedir *dir, const void __user *virt, bool user, bool writeable); int kprintf(const char *fmt, ...); + +void *debug_caller(size_t depth); +void debug_stacktrace(void); |