summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91_machdep.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2013-12-06 18:41:16 +0000
committerimp <imp@FreeBSD.org>2013-12-06 18:41:16 +0000
commitec17b7d32f38ebf3275406c298c1449bb6a3d91d (patch)
tree7996a4f5781f6bcc746c1427c0e64db77ce318ab /sys/arm/at91/at91_machdep.c
parentae3326fa9bf249382d52d35c3fe52d16fdd40337 (diff)
downloadFreeBSD-src-ec17b7d32f38ebf3275406c298c1449bb6a3d91d.zip
FreeBSD-src-ec17b7d32f38ebf3275406c298c1449bb6a3d91d.tar.gz
Although not strictly required to boot a 64MB board, bump
vm_max_virtual_address to be KERNVIRTADDR + 256MB. This allows some future shock protection since the KVA requirements have gone up since the unmapped changes have gone in, as well as preventing us from overlapping with the hardware devices, which we map at 0xd0000000, which we'd hit with anything more than 85MB... MFC after: 3 days
Diffstat (limited to 'sys/arm/at91/at91_machdep.c')
-rw-r--r--sys/arm/at91/at91_machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arm/at91/at91_machdep.c b/sys/arm/at91/at91_machdep.c
index 32fa129..2eb00a1d 100644
--- a/sys/arm/at91/at91_machdep.c
+++ b/sys/arm/at91/at91_machdep.c
@@ -633,7 +633,8 @@ initarm(struct arm_boot_params *abp)
pmap_curmaxkvaddr = afterkern + L1_S_SIZE * (KERNEL_PT_KERN_NUM - 1);
arm_dump_avail_init(memsize, sizeof(dump_avail)/sizeof(dump_avail[0]));
- vm_max_kernel_address = KERNVIRTADDR + 3 * memsize;
+ /* Always use the 256MB of KVA we have available between the kernel and devices */
+ vm_max_kernel_address = KERNVIRTADDR + (256 << 20);
pmap_bootstrap(freemempos, &kernel_l1pt);
msgbufp = (void*)msgbufpv.pv_va;
msgbufinit(msgbufp, msgbufsize);
OpenPOWER on IntegriCloud