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

Justin Hibbits jhibbits at FreeBSD.org
Thu Jan 14 23:22:45 UTC 2016


Author: jhibbits
Date: Thu Jan 14 23:22:43 2016
New Revision: 294055
URL: https://svnweb.freebsd.org/changeset/base/294055

Log:
  Adjust VM_MAX_KERNEL_ADDRESS to the max address, not the minimum next.
  
  VM_MAX_KERNEL_ADDERESS is the maximum KVA address.  0xf8000000 is the start of
  device mapping space.  Since several conditional checks use '<=' against
  VM_MAX_KERNEL_ADDRESS, bad things could feasibly happen.

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

Modified: head/sys/powerpc/include/vmparam.h
==============================================================================
--- head/sys/powerpc/include/vmparam.h	Thu Jan 14 22:53:07 2016	(r294054)
+++ head/sys/powerpc/include/vmparam.h	Thu Jan 14 23:22:43 2016	(r294055)
@@ -111,7 +111,7 @@
 #define	KERNBASE		0xc0000000	/* start of kernel virtual */
 
 #define	VM_MIN_KERNEL_ADDRESS	KERNBASE
-#define	VM_MAX_KERNEL_ADDRESS	0xf8000000
+#define	VM_MAX_KERNEL_ADDRESS	0xf7ffffff
 #define	VM_MAX_SAFE_KERNEL_ADDRESS	VM_MAX_KERNEL_ADDRESS
 
 #endif /* AIM/E500 */
@@ -129,7 +129,7 @@ struct pmap_physseg {
  * The physical address space is densely populated on 32-bit systems,
  * but may not be on 64-bit ones.
  */
-#ifdef __powerpc64__
+#ifdef __powerpc__
 #define	VM_PHYSSEG_SPARSE
 #else
 #define	VM_PHYSSEG_DENSE


More information about the svn-src-all mailing list