svn commit: r322928 - head/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Sat Aug 26 18:09:28 UTC 2017


Author: kib
Date: Sat Aug 26 18:09:27 2017
New Revision: 322928
URL: https://svnweb.freebsd.org/changeset/base/322928

Log:
  Remove unused code.
  
  The machdep.uprintf_signal sysctl replaced it in more convenient way,
  not requiring recompilation to use and providing more information on
  fault.
  
  Reviewed by:	bde
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/i386/i386/trap.c

Modified: head/sys/i386/i386/trap.c
==============================================================================
--- head/sys/i386/i386/trap.c	Sat Aug 26 18:06:29 2017	(r322927)
+++ head/sys/i386/i386/trap.c	Sat Aug 26 18:09:27 2017	(r322928)
@@ -731,16 +731,6 @@ kernel_trctrap:
 	KASSERT((read_eflags() & PSL_I) != 0, ("interrupts disabled"));
 	trapsignal(td, &ksi);
 
-#ifdef DEBUG
-	if (type <= MAX_TRAP_MSG) {
-		uprintf("fatal process exception: %s",
-			trap_msg[type]);
-		if ((type == T_PAGEFLT) || (type == T_PROTFLT))
-			uprintf(", fault VA = 0x%lx", (u_long)eva);
-		uprintf("\n");
-	}
-#endif
-
 user:
 	userret(td, frame);
 	KASSERT(PCB_USER_FPU(td->td_pcb),


More information about the svn-src-head mailing list