socsvn commit: r271368 - soc2014/op/freebsd-base/sys/amd64/ia32

op at FreeBSD.org op at FreeBSD.org
Fri Jul 25 15:22:02 UTC 2014


Author: op
Date: Fri Jul 25 15:22:01 2014
New Revision: 271368
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271368

Log:
  KSP SMAP: use selfpatch for stac, clac in ia32/ia32_exception.S
  
  Signed-off-by: Oliver Pinter <oliver.pntr at gmail.com>
  
  git: https://github.com/opntr/opBSD/tree/op/gsoc2014/smap+kpatch

Modified:
  soc2014/op/freebsd-base/sys/amd64/ia32/ia32_exception.S

Modified: soc2014/op/freebsd-base/sys/amd64/ia32/ia32_exception.S
==============================================================================
--- soc2014/op/freebsd-base/sys/amd64/ia32/ia32_exception.S	Fri Jul 25 15:21:30 2014	(r271367)
+++ soc2014/op/freebsd-base/sys/amd64/ia32/ia32_exception.S	Fri Jul 25 15:22:01 2014	(r271368)
@@ -27,6 +27,8 @@
  */
 
 #include <machine/asmacros.h>
+#include <machine/specialreg.h>
+#include <machine/selfpatch-asmacros.h>
 
 #include "assym.s"
 
@@ -67,7 +69,7 @@
 	movq	%r14,TF_R14(%rsp)
 	movq	%r15,TF_R15(%rsp)
 	movl	$TF_HASSEGS,TF_FLAGS(%rsp)
-	clac
+	_clac
 	cld
 	FAKE_MCOUNT(TF_RIP(%rsp))
 	movq	%rsp, %rdi


More information about the svn-soc-all mailing list