svn commit: r305878 - stable/11/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Fri Sep 16 12:12:02 UTC 2016


Author: andrew
Date: Fri Sep 16 12:12:00 2016
New Revision: 305878
URL: https://svnweb.freebsd.org/changeset/base/305878

Log:
  MFC 305605:
  Don't panic when we don't handle a userland exception, not all we may see
  are currently handled.
  
  Obtained from:	ABT Systems Ltd
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/11/sys/arm64/arm64/trap.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/arm64/arm64/trap.c
==============================================================================
--- stable/11/sys/arm64/arm64/trap.c	Fri Sep 16 11:57:48 2016	(r305877)
+++ stable/11/sys/arm64/arm64/trap.c	Fri Sep 16 12:12:00 2016	(r305878)
@@ -394,9 +394,9 @@ do_el0_sync(struct trapframe *frame)
 		userret(td, frame);
 		break;
 	default:
-		print_registers(frame);
-		panic("Unknown userland exception %x esr_el1 %lx\n", exception,
-		    esr);
+		call_trapsignal(td, SIGBUS, BUS_OBJERR, (void *)frame->tf_elr);
+		userret(td, frame);
+		break;
 	}
 }
 


More information about the svn-src-stable mailing list