diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 612a69290aef..024a9d53784d 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -258,9 +258,6 @@ trap(frame) default: ucode = code + BUS_SEGM_FAULT ; i = SIGBUS; -printf("trap %d: pid %d err %p eva %p, rip %p, rax %p, rbx %p, rcx %p, rdx %p, rsp %p, rbp %p, rsi %p, rdi %p\n", type, p->p_pid, (void *)frame.tf_err, -(void *)frame.tf_addr, (void *)frame.tf_rip, (void *)frame.tf_rax, (void *)frame.tf_rbx, (void *)frame.tf_rcx, (void *)frame.tf_rdx, (void *)frame.tf_rsp, (void *)frame.tf_rbp, (void *)frame.tf_rsi, (void *)frame.tf_rdi); - break; case T_PAGEFLT: /* page fault */ @@ -545,12 +542,6 @@ nogo: return (-1); } -printf("trap_pfault: pid %d %s %s %s eva %p, rip %p, rax %p, rbx %p, rcx %p, rdx %p, rsp %p, rbp %p, rsi %p, rdi %p\n", p->p_pid, - frame->tf_err & PGEX_U ? "user" : "supervisor", - frame->tf_err & PGEX_W ? "write" : "read", - frame->tf_err & PGEX_P ? "protection violation" : "page not present", -(void *)eva, (void *)frame->tf_rip, (void *)frame->tf_rax, (void *)frame->tf_rbx, (void *)frame->tf_rcx, (void *)frame->tf_rdx, (void *)frame->tf_rsp, (void *)frame->tf_rbp, (void *)frame->tf_rsi, (void *)frame->tf_rdi); - return((rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV); }