summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-01-14 23:22:43 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-01-14 23:22:43 +0000
commit95c357cb5ba2cddc1a10937a8ee8b824232b5c56 (patch)
treeb0f55ebed269bf8b4f092ba59b2fb1c45046fdd2 /sys/powerpc/include
parent618568086050717fd13a39836abad61fedcf4181 (diff)
downloadFreeBSD-src-95c357cb5ba2cddc1a10937a8ee8b824232b5c56.zip
FreeBSD-src-95c357cb5ba2cddc1a10937a8ee8b824232b5c56.tar.gz
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.
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/vmparam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/include/vmparam.h b/sys/powerpc/include/vmparam.h
index 5b808ab..1d7a06e 100644
--- a/sys/powerpc/include/vmparam.h
+++ b/sys/powerpc/include/vmparam.h
@@ -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
OpenPOWER on IntegriCloud