[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:
@@ -28,5 +28,6 @@ void print_header(
|
||||
void print_cpu(serial_port &out, cpu_data &cpu);
|
||||
void print_callstack(serial_port &out, symbol_table &syms, frame const *fp);
|
||||
void print_cpu_state(serial_port &out, const cpu_state ®s);
|
||||
void print_user_state(serial_port &out, const cpu_state ®s);
|
||||
|
||||
} // namespace panicking
|
||||
|
||||
Reference in New Issue
Block a user