[panic] Allow assert/panic to take optional user cpu_state
In places where the "user" state is available, like interrupt handlers, panic() and kassert() can now take an optional pointer to that user cpu_state structure, and the panic handler will print that out as well.
This commit is contained in:
@@ -21,11 +21,14 @@ struct cpu_state
|
||||
/// Kernel-wide panic information
|
||||
struct panic_data
|
||||
{
|
||||
void const * symbol_data;
|
||||
char const * message;
|
||||
char const * function;
|
||||
char const * file;
|
||||
void const *symbol_data;
|
||||
cpu_state const *user_state;
|
||||
|
||||
char const *message;
|
||||
char const *function;
|
||||
char const *file;
|
||||
uint32_t line;
|
||||
|
||||
uint16_t cpus;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user