socsvn commit: r269489 - soc2014/op/freebsd-base/sys/amd64/amd64

op at FreeBSD.org op at FreeBSD.org
Thu Jun 12 22:31:28 UTC 2014


Author: op
Date: Thu Jun 12 22:31:27 2014
New Revision: 269489
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=269489

Log:
  SMAP AMD64: updated trap handler
  
  git: https://github.com/opntr/opBSD/tree/op/gsoc2014/smap
  
  Signed-off-by: Oliver Pinter <oliver.pntr at gmail.com>
  
  

Modified:
  soc2014/op/freebsd-base/sys/amd64/amd64/trap.c

Modified: soc2014/op/freebsd-base/sys/amd64/amd64/trap.c
==============================================================================
--- soc2014/op/freebsd-base/sys/amd64/amd64/trap.c	Thu Jun 12 22:30:59 2014	(r269488)
+++ soc2014/op/freebsd-base/sys/amd64/amd64/trap.c	Thu Jun 12 22:31:27 2014	(r269489)
@@ -699,7 +699,9 @@
 		 *  value of EFLAGS.AC." - Intel Ref. # 319433-014 9.3.2
 		 */
 		if (__predict_false(smap_access_violation(frame, usermode))) {
-			panic("SMAP!");
+			printf("Supervisor Mode Access Prevention\n");
+			fatal_trap(frame, eva);
+			return(-1);
 		}
 
 		/*


More information about the svn-soc-all mailing list