x86_64: print stack trace during panic

This commit is contained in:
2023-05-06 22:18:34 +01:00
parent 90afd997e6
commit 6cf8f4234a
4 changed files with 75 additions and 3 deletions

View File

@@ -1,9 +1,12 @@
#ifndef SOCKS_X86_64_PANIC_H_
#define SOCKS_X86_64_PANIC_H_
#include <stdint.h>
struct cpu_context;
extern void ml_print_cpu_state(struct cpu_context *ctx);
extern void ml_print_stack_trace(struct cpu_context *ctx);
extern void ml_print_stack_trace(uintptr_t ip);
extern void ml_print_stack_trace_irq(struct cpu_context *ctx);
#endif