From fd36ed577a2ff0060d0aeb8279414ac847a0e5ad Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 3 Aug 2020 07:42:16 -0500 Subject: [PATCH] Re-add the PID to page fault details --- kernel/cpu/i386/isr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/cpu/i386/isr.c b/kernel/cpu/i386/isr.c index cea0cfe..11e4dc4 100644 --- a/kernel/cpu/i386/isr.c +++ b/kernel/cpu/i386/isr.c @@ -147,10 +147,10 @@ void isr_handler(registers_t* r) { serial_write_string("PAGE FAULT\n"); void* addr; asm("movl %%cr2,%0": "=r"(addr)); - // serial_write_string("In PID "); + serial_write_string("In PID "); char str[11]; - // int_to_ascii(getPID(),str); - // serial_write_string(str); + int_to_ascii(tasking_get_PID(),str); + serial_write_string(str); serial_write_string(" and address "); str[0]='\0'; hex_to_ascii(r->eip,str);