]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commitdiff
cleanup(idt): remove debug page fault traces for PID 1
authorTulio A M Mendes <[email protected]>
Thu, 16 Apr 2026 05:36:59 +0000 (02:36 -0300)
committerTulio A M Mendes <[email protected]>
Thu, 16 Apr 2026 05:36:59 +0000 (02:36 -0300)
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.

src/arch/x86/idt.c

index c1a2015ad6c044dbd59827efce76479dee3bde52..23cdaaa18e909adfef4c59d400de2fda82eea632 100644 (file)
@@ -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();