svn commit: r311703 - head/sys/powerpc/include
Justin Hibbits
jhibbits at FreeBSD.org
Sun Jan 8 21:12:47 UTC 2017
Author: jhibbits
Date: Sun Jan 8 21:12:46 2017
New Revision: 311703
URL: https://svnweb.freebsd.org/changeset/base/311703
Log:
Knock a page off VM_MAX_KERNEL_ADDRESS
There are places where checks are made against VM_MAX_KERNEL_ADDRESS, or
virtual_end (set to VM_MAX_KERNEL_ADDRESS). With 32-bit checks, an address will
always be less than or equal to 0xffffffff. Drop a page, so those checks can
terminate loops safely.
Modified:
head/sys/powerpc/include/vmparam.h
Modified: head/sys/powerpc/include/vmparam.h
==============================================================================
--- head/sys/powerpc/include/vmparam.h Sun Jan 8 20:58:58 2017 (r311702)
+++ head/sys/powerpc/include/vmparam.h Sun Jan 8 21:12:46 2017 (r311703)
@@ -111,7 +111,7 @@
#define KERNBASE 0xc0000000 /* start of kernel virtual */
#define VM_MIN_KERNEL_ADDRESS KERNBASE
-#define VM_MAX_KERNEL_ADDRESS 0xffffffff
+#define VM_MAX_KERNEL_ADDRESS 0xffffefff
#define VM_MAX_SAFE_KERNEL_ADDRESS VM_MAX_KERNEL_ADDRESS
#endif /* AIM/E500 */
More information about the svn-src-all
mailing list