svn commit: r255415 - head/sys/powerpc/include

Nathan Whitehorn nwhitehorn at FreeBSD.org
Mon Sep 9 12:44:49 UTC 2013


Author: nwhitehorn
Date: Mon Sep  9 12:44:48 2013
New Revision: 255415
URL: http://svnweb.freebsd.org/changeset/base/255415

Log:
  Use the canonical bits for wired, etc. in the PTE. This is important for
  interactions with certain kinds of hypervisors that look into the PTEs
  more closely than they should.
  
  Approved by:	re (kib)

Modified:
  head/sys/powerpc/include/pte.h

Modified: head/sys/powerpc/include/pte.h
==============================================================================
--- head/sys/powerpc/include/pte.h	Mon Sep  9 08:07:46 2013	(r255414)
+++ head/sys/powerpc/include/pte.h	Mon Sep  9 12:44:48 2013	(r255415)
@@ -96,8 +96,9 @@ struct lpteg {
 #define LPTE_VSID_SHIFT		12
 #define LPTE_AVPN_MASK		0xFFFFFFFFFFFFFF80ULL
 #define LPTE_API		0x0000000000000F80ULL
-#define LPTE_LOCKED		0x0000000000000040ULL
-#define LPTE_WIRED		0x0000000000000008ULL
+#define LPTE_SWBITS		0x0000000000000078ULL
+#define LPTE_WIRED		0x0000000000000010ULL
+#define LPTE_LOCKED		0x0000000000000008ULL
 #define LPTE_BIG		0x0000000000000004ULL	/* 4kb/16Mb page */
 #define LPTE_HID		0x0000000000000002ULL
 #define LPTE_VALID		0x0000000000000001ULL


More information about the svn-src-all mailing list