summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-05-02 17:49:05 +0000
committermarcel <marcel@FreeBSD.org>2011-05-02 17:49:05 +0000
commit7bd34e01805de6a21f42e05370b5acb490814f99 (patch)
tree1eddaf0730d3ffc8274d755727d76f2bff78da8a /sys/ia64
parente7bc02a7b162c390ce25fa186e2569ba74f6e03f (diff)
downloadFreeBSD-src-7bd34e01805de6a21f42e05370b5acb490814f99.zip
FreeBSD-src-7bd34e01805de6a21f42e05370b5acb490814f99.tar.gz
Don't use the whole region 5 for KVA, because the CPU may not implement all
of the 61 bits available within the region for virtual addressing. Since there's no good way for us to map out the gap in the virtual address space, limit KVA to the architectural minimum implemented address bits. This still gives us 1 petabyte of KVA, so no worries.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/vmparam.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ia64/include/vmparam.h b/sys/ia64/include/vmparam.h
index 8cf3130..e93ca1b 100644
--- a/sys/ia64/include/vmparam.h
+++ b/sys/ia64/include/vmparam.h
@@ -182,7 +182,8 @@
#define VM_MIN_ADDRESS 0
#define VM_MAXUSER_ADDRESS IA64_RR_BASE(IA64_VM_MINKERN_REGION)
#define VM_MIN_KERNEL_ADDRESS IA64_RR_BASE(IA64_VM_MINKERN_REGION + 1)
-#define VM_MAX_KERNEL_ADDRESS (IA64_RR_BASE(IA64_VM_MINKERN_REGION + 2) - 1)
+#define VM_MAX_KERNEL_ADDRESS \
+ (VM_MIN_KERNEL_ADDRESS + IA64_REGION_GAP_START - 1)
#define VM_MAX_ADDRESS ~0UL
#define KERNBASE VM_MAXUSER_ADDRESS
OpenPOWER on IntegriCloud