socsvn commit: r271369 - soc2014/op/freebsd-base/sys/amd64/include

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


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

Log:
  KSP SMAP: use selfpatch for stac, clac in include/asmacros.h
  
  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/include/asmacros.h

Modified: soc2014/op/freebsd-base/sys/amd64/include/asmacros.h
==============================================================================
--- soc2014/op/freebsd-base/sys/amd64/include/asmacros.h	Fri Jul 25 15:22:01 2014	(r271368)
+++ soc2014/op/freebsd-base/sys/amd64/include/asmacros.h	Fri Jul 25 15:22:10 2014	(r271369)
@@ -33,6 +33,8 @@
 #define _MACHINE_ASMACROS_H_
 
 #include <sys/cdefs.h>
+#include <machine/specialreg.h>
+#include <machine/selfpatch-asmacros.h>
 
 /* XXX too much duplication in various asm*.h's. */
 
@@ -167,7 +169,7 @@
 	movw	%es,TF_ES(%rsp) ;					\
 	movw	%ds,TF_DS(%rsp) ;					\
 	movl	$TF_HASSEGS,TF_FLAGS(%rsp) ;				\
-	clac;								\
+	_clac;								\
 	cld
 
 #define POP_FRAME							\


More information about the svn-soc-all mailing list