Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2012 16:36:58 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 213897 for review
Message-ID:  <201207041636.q64Gawgl024966@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@213897?ac=10

Change 213897 by jhb@jhb_jhbbsd on 2012/07/04 16:35:56

	Compile.

Affected files ...

.. //depot/projects/smpng/sys/amd64/amd64/db_disasm.c#8 edit
.. //depot/projects/smpng/sys/modules/x86dis/x86dis.c#6 edit

Differences ...

==== //depot/projects/smpng/sys/amd64/amd64/db_disasm.c#8 (text+ko) ====

@@ -1284,7 +1284,7 @@
 			i_size = NONE;
 			i_mode = 0;
 			break;
-		case 0xc3:
+		case 0xc4:
 			i_name = "vmxoff";
 			i_size = NONE;
 			i_mode = 0;

==== //depot/projects/smpng/sys/modules/x86dis/x86dis.c#6 (text+ko) ====

@@ -1,6 +1,7 @@
 #include <sys/types.h>
+#include <machine/cpufunc.h>
 
-//#define NEW_AS
+#define NEW_AS
 
 static __inline void
 xrstor(char *addr, uint64_t mask)
@@ -131,8 +132,8 @@
 	vmcall();
 	vmlaunch();
 	vmresume();
-	lfence();
+	__asm __volatile("lfence" ::: "memory");
 	mfence();
-	sfence();
-	clflush(addr);
+	__asm __volatile("sfence" ::: "memory");
+	clflush((u_long)addr);
 }



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