Author: andrew
Date: Tue Feb  2 16:35:37 2016
New Revision: 295154
URL: https://svnweb.freebsd.org/changeset/base/295154

Log:
  Increase the space we use after the kernel to 8MiB. On 2GiB HiKey board we
  would try to access data past this point stopping the boot.
  
  Sponsored by: ABT Systems Ltd

Modified:
  head/sys/arm64/arm64/locore.S

Modified: head/sys/arm64/arm64/locore.S
==============================================================================
--- head/sys/arm64/arm64/locore.S       Tue Feb  2 16:32:44 2016        
(r295153)
+++ head/sys/arm64/arm64/locore.S       Tue Feb  2 16:35:37 2016        
(r295154)
@@ -369,8 +369,8 @@ create_pagetables:
        sub     x8, x7, x6
        /* Get the number of l2 pages to allocate, rounded down */
        lsr     x10, x8, #(L2_SHIFT)
-       /* Add 4 MiB for any rounding above and the module data */
-       add     x10, x10, #2
+       /* Add 8 MiB for any rounding above and the module data */
+       add     x10, x10, #4
 
        /* Create the kernel space L2 table */
        mov     x6, x26
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to