Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2016 12:12:00 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r305878 - stable/11/sys/arm64/arm64
Message-ID:  <201609161212.u8GCC03F008891@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609161212.u8GCC03F008891>