fix (panic): fixed name resolver, when the panic occurs while handling an interrupt

This commit is contained in:
antifallobst 2023-03-07 20:49:57 +01:00
parent 1b1a5ed653
commit 35783e6538
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@
#include "utils/core.h"
#include "platform/exceptions.h"
#include "mm/stack.h"
#include "mm/region.h"
#include "proc/scheduler.h"
void panic_log_paging_info(cpu_state_T* state) {
@ -79,7 +80,7 @@ void panic_log_registers(cpu_state_T* state) {
}
void panic_log_call_stack(cpu_state_T* state) {
process_T* process = scheduler_get_current_process();
process_T* process = state->rip >= MEM_REGION_KERNEL ? scheduler_get_process(PROCESS_KERNEL) : scheduler_get_current_process();
if (process == NULL || process->executable == NULL) {
log(LOG_NONE, "Call Stack not resolvable (no symbol data access)");
return;