From: Tulio A M Mendes Date: Thu, 16 Apr 2026 05:36:59 +0000 (-0300) Subject: cleanup(idt): remove debug page fault traces for PID 1 X-Git-Url: https://projects.tadryanom.me/?a=commitdiff_plain;h=c3a137b29796a0225ceee11873c99497ee90db10;p=AdrOS.git cleanup(idt): remove debug page fault traces for PID 1 Removed debug kprintf statements that were added during the execve/SIGSEGV debugging session: PDE/PTE dumps, CR3 comparison, GOT dumps, and LAPIC ID traces. These are no longer needed now that the root cause has been fixed. --- diff --git a/src/arch/x86/idt.c b/src/arch/x86/idt.c index c1a2015a..23cdaaa1 100644 --- a/src/arch/x86/idt.c +++ b/src/arch/x86/idt.c @@ -9,6 +9,7 @@ #include "arch/x86/idt.h" #include "arch/x86/lapic.h" +#include "hal/cpu.h" #include "io.h" #include "console.h" #include "process.h" @@ -105,6 +106,10 @@ static void deliver_signals_to_usermode(struct registers* regs) { if (h == 0) { if (sig == 11) { + kprintf("[SIGSEGV] pid=%d fault_addr=0x%x eip=0x%x\n", + current_process ? (int)current_process->pid : -1, + (unsigned)current_process->last_fault_addr, + (unsigned)regs->eip); process_exit_notify(128 + sig); __asm__ volatile("sti"); schedule();