Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2013 18:32:04 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r259038 - stable/9/sys/arm/at91
Message-ID:  <201312061832.rB6IW4lo076778@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Dec  6 18:32:03 2013
New Revision: 259038
URL: http://svnweb.freebsd.org/changeset/base/259038

Log:
  Bump the maximum VM space from 3 * memory size to a fixed
  256MB. That's all we have room for since we map the hardware registers
  starting at 0xd0000000. This allows my 64MB AT91SAM9G20 to boot again
  after the unmmaped I/O changes were MFC'd at r251897. Other
  subplatforms may need similar treatment.

Modified:
  stable/9/sys/arm/at91/at91_machdep.c

Modified: stable/9/sys/arm/at91/at91_machdep.c
==============================================================================
--- stable/9/sys/arm/at91/at91_machdep.c	Fri Dec  6 18:09:10 2013	(r259037)
+++ stable/9/sys/arm/at91/at91_machdep.c	Fri Dec  6 18:32:03 2013	(r259038)
@@ -426,9 +426,8 @@ initarm(void *arg, void *arg2)
 	dump_avail[2] = 0;
 	dump_avail[3] = 0;
 
-	pmap_bootstrap(freemempos,
-	    KERNVIRTADDR + 3 * memsize,
-	    &kernel_l1pt);
+	/* Use the full 256MB of KVA we have available, regardless of memory size */
+	pmap_bootstrap(freemempos, KERNVIRTADDR + (256 << 20), &kernel_l1pt);
 	msgbufp = (void*)msgbufpv.pv_va;
 	msgbufinit(msgbufp, msgbufsize);
 	mutex_init();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312061832.rB6IW4lo076778>