* NOTE: on amd64 we have a tf_addr field in the trapframe, no
* kludge is needed to pass the fault address to signal handlers.
*/
- kprintf("seg-fault accessing address %p ip=%p\n",
- (void *)va, (void *)frame->tf_rip);
+ struct proc *p = td->td_proc;
+ kprintf("seg-fault accessing address %p rip=%p pid=%d p_comm=%s\n",
- va, frame->tf_rip, p->p_pid, p->p_comm);
++ (void *)va, (void *)frame->tf_rip, p->p_pid, p->p_comm);
/* Debugger("seg-fault"); */
return((rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV);
regs->tf_rip = (long)params->func;
regs->tf_rsp = (long)params->stack;
/* Set up argument for function call */
- regs->tf_rdi = params->arg; /* JG Can this be in userspace addresses? */
- regs->tf_rdi = (long)params->arg;
++ regs->tf_rdi = (long)params->arg; /* JG Can this be in userspace addresses? */
/*
* Set up fake return address. As the lwp function may never return,
* we simply copy out a NULL pointer and force the lwp to receive