Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2012 13:47:23 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r234180 - in stable/8/sys: amd64/include i386/conf i386/include mips/include powerpc/include
Message-ID:  <201204121347.q3CDlNSO030882@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Apr 12 13:47:23 2012
New Revision: 234180
URL: http://svn.freebsd.org/changeset/base/234180

Log:
  MFC 233670,233671:
  - Use VM_MEMATTR_UNCACHEABLE for the constant for UC memory rather than
    VM_MEMATTR_UNCACHED on mips.
  - Rename VM_MEMATTR_UNCACHED to VM_MEMATTR_WEAK_UNCACHEABLE on x86 to
    be less ambiguous and more clearly identify what it means.  An alias
    from VM_MEMATTR_WEAK_UNCACHEABLE to VM_MEMATTR_WEAK_UNCACHED remains
    on x86 to preserve the KPI.
  - Remove the VM_MEMATTR_UNCACHED alias from powerpc.

Modified:
  stable/8/sys/amd64/include/vm.h
  stable/8/sys/i386/include/vm.h
  stable/8/sys/mips/include/vm.h
  stable/8/sys/powerpc/include/vm.h
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/boot/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/e1000/   (props changed)
  stable/8/sys/i386/conf/XENHVM   (props changed)

Modified: stable/8/sys/amd64/include/vm.h
==============================================================================
--- stable/8/sys/amd64/include/vm.h	Thu Apr 12 13:46:56 2012	(r234179)
+++ stable/8/sys/amd64/include/vm.h	Thu Apr 12 13:47:23 2012	(r234180)
@@ -38,7 +38,8 @@
 #define	VM_MEMATTR_WRITE_THROUGH	((vm_memattr_t)PAT_WRITE_THROUGH)
 #define	VM_MEMATTR_WRITE_PROTECTED	((vm_memattr_t)PAT_WRITE_PROTECTED)
 #define	VM_MEMATTR_WRITE_BACK		((vm_memattr_t)PAT_WRITE_BACK)
-#define	VM_MEMATTR_UNCACHED		((vm_memattr_t)PAT_UNCACHED)
+#define	VM_MEMATTR_WEAK_UNCACHEABLE	((vm_memattr_t)PAT_UNCACHED)
+#define	VM_MEMATTR_UNCACHED		VM_MEMATTR_WEAK_UNCACHEABLE
 
 #define	VM_MEMATTR_DEFAULT		VM_MEMATTR_WRITE_BACK
 

Modified: stable/8/sys/i386/include/vm.h
==============================================================================
--- stable/8/sys/i386/include/vm.h	Thu Apr 12 13:46:56 2012	(r234179)
+++ stable/8/sys/i386/include/vm.h	Thu Apr 12 13:47:23 2012	(r234180)
@@ -38,7 +38,8 @@
 #define	VM_MEMATTR_WRITE_THROUGH	((vm_memattr_t)PAT_WRITE_THROUGH)
 #define	VM_MEMATTR_WRITE_PROTECTED	((vm_memattr_t)PAT_WRITE_PROTECTED)
 #define	VM_MEMATTR_WRITE_BACK		((vm_memattr_t)PAT_WRITE_BACK)
-#define	VM_MEMATTR_UNCACHED		((vm_memattr_t)PAT_UNCACHED)
+#define	VM_MEMATTR_WEAK_UNCACHEABLE	((vm_memattr_t)PAT_UNCACHED)
+#define	VM_MEMATTR_UNCACHED		VM_MEMATTR_WEAK_UNCACHEABLE
 
 #define	VM_MEMATTR_DEFAULT		VM_MEMATTR_WRITE_BACK
 

Modified: stable/8/sys/mips/include/vm.h
==============================================================================
--- stable/8/sys/mips/include/vm.h	Thu Apr 12 13:46:56 2012	(r234179)
+++ stable/8/sys/mips/include/vm.h	Thu Apr 12 13:47:23 2012	(r234180)
@@ -32,7 +32,7 @@
 #include <machine/pte.h>
 
 /* Memory attributes. */
-#define	VM_MEMATTR_UNCACHED	((vm_memattr_t)PTE_C_UNCACHED)
+#define	VM_MEMATTR_UNCACHEABLE	((vm_memattr_t)PTE_C_UNCACHED)
 #define	VM_MEMATTR_DEFAULT	((vm_memattr_t)PTE_C_CACHE)
 
 #endif /* !_MACHINE_VM_H_ */

Modified: stable/8/sys/powerpc/include/vm.h
==============================================================================
--- stable/8/sys/powerpc/include/vm.h	Thu Apr 12 13:46:56 2012	(r234179)
+++ stable/8/sys/powerpc/include/vm.h	Thu Apr 12 13:47:23 2012	(r234180)
@@ -34,7 +34,6 @@
 /* Memory attributes. */
 #define	VM_MEMATTR_DEFAULT		0
 #define	VM_MEMATTR_UNCACHEABLE		0x01
-#define	VM_MEMATTR_UNCACHED		VM_MEMATTR_UNCACHEABLE
 #define	VM_MEMATTR_CACHEABLE		0x02
 #define	VM_MEMATTR_WRITE_COMBINING	0x04
 #define	VM_MEMATTR_WRITE_BACK		0x08



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