- extern int nofault;
- int ucode;
-
-#define DEBUG
-#ifdef DEBUG
-dprintf(DALLTRAPS, "\n%d. trap",u.u_procp->p_pid);
-dprintf(DALLTRAPS, " pc:%x cs:%x ds:%x eflags:%x isp %x\n",
- frame.tf_eip, frame.tf_cs, frame.tf_ds, frame.tf_eflags,
- frame.tf_isp);
-dprintf(DALLTRAPS, "edi %x esi %x ebp %x ebx %x esp %x\n",
- frame.tf_edi, frame.tf_esi, frame.tf_ebp,
- frame.tf_ebx, frame.tf_esp);
-dprintf(DALLTRAPS, "edx %x ecx %x eax %x\n",
- frame.tf_edx, frame.tf_ecx, frame.tf_eax);
-/*p=u.u_procp;
-dprintf(DALLTRAPS, "sig %x %x %x \n",
- p->p_sigignore, p->p_sigcatch, p->p_sigmask); */
-dprintf(DALLTRAPS, " ec %x type %x cpl %x ",
- frame.tf_err&0xffff, frame.tf_trapno, cpl);
-/*pg("trap cr2 %x", rcr2());*/
-#endif