diff options
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/core/idt.c | 2 | ||||
-rw-r--r-- | src/kernel/user/process.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/core/idt.c b/src/kernel/core/idt.c index b94695f..f99460f 100644 --- a/src/kernel/core/idt.c +++ b/src/kernel/core/idt.c @@ -122,7 +122,7 @@ void idt_irq_handler(registers_t *regs) { if (regs->err_code == 0) { irq0_handler(regs, st); } else { - dbg_printf("irq%d.", regs->err_code); + /*dbg_printf("irq%d.", regs->err_code);*/ if (irq_handlers[regs->err_code] != 0) { irq_handlers[regs->err_code](regs); diff --git a/src/kernel/user/process.c b/src/kernel/user/process.c index e46fde8..542c294 100644 --- a/src/kernel/user/process.c +++ b/src/kernel/user/process.c @@ -726,7 +726,7 @@ void probe_for_read(const void* addr, size_t len) { process_t *proc = current_process(); user_region_t *r = find_user_region(proc, addr); if (r == 0 || addr + len > r->addr + r->size || !(r->mode & MM_READ)) { - dbg_printf("Access violation on read at 0x%p len 0x%p in process %d : exiting.\n", + dbg_printf("Access violation (kernel reading user data) at 0x%p len 0x%p in process %d : exiting.\n", addr, len, proc->pid); current_process_exit(PS_FAILURE, FAIL_SC_SEGFAULT); } @@ -736,7 +736,7 @@ void probe_for_write(const void* addr, size_t len) { process_t *proc = current_process(); user_region_t *r = find_user_region(proc, addr); if (r == 0 || addr + len > r->addr + r->size || !(r->mode & MM_WRITE)) { - dbg_printf("Access violation on write at 0x%p len 0x%p in process %d : exiting.\n", + dbg_printf("Access violation (kernel writing user data) at 0x%p len 0x%p in process %d : exiting.\n", addr, len, proc->pid); current_process_exit(PS_FAILURE, FAIL_SC_SEGFAULT); } |