diff options
author | Warner Losh <imp@FreeBSD.org> | 2013-12-06 18:41:16 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2013-12-06 18:41:16 +0000 |
commit | 0b40a047192dafe9746ee1cd77920a107c2b64d8 (patch) | |
tree | 7996a4f5781f6bcc746c1427c0e64db77ce318ab /sys | |
parent | 9f16518401ad85f6e5644196ef9b044d928756bc (diff) | |
download | src-0b40a047192dafe9746ee1cd77920a107c2b64d8.tar.gz src-0b40a047192dafe9746ee1cd77920a107c2b64d8.zip |
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
Notes
Notes:
svn path=/head/; revision=259039
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/at91/at91_machdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arm/at91/at91_machdep.c b/sys/arm/at91/at91_machdep.c index 32fa129229c3..2eb00a1da2c3 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); |