aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2018-05-15 16:44:35 +0000
committerAndrew Turner <andrew@FreeBSD.org>2018-05-15 16:44:35 +0000
commit25964cd229c850bbdc4565911cd4d0d5b4e098a0 (patch)
tree036332b5ca9c3ac0612b7605947c079f51aea065 /sys/arm64
parente15f0023ed8caedb6fdbd7e0d6d41fad71b28ae9 (diff)
downloadsrc-25964cd229c850bbdc4565911cd4d0d5b4e098a0.tar.gz
src-25964cd229c850bbdc4565911cd4d0d5b4e098a0.zip
Increase the number of pages we allocate in the arm64 early boot. We are
already close to the limit so increasing the kernel size may cause it to fail to boot when it runs past the end of allocated memory. Reported by: manu Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=333636
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/locore.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S
index 76b57403f27c..107d189618e4 100644
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -354,8 +354,8 @@ create_pagetables:
mov x6, #(KERNBASE)
/* Find modulep - begin */
sub x8, x0, x6
- /* Add a 2MiB page for the module data and round up */
- ldr x7, =(2 * L2_SIZE - 1)
+ /* Add two 2MiB pages for the module data and round up */
+ ldr x7, =(3 * L2_SIZE - 1)
add x8, x8, x7
/* Get the number of l2 pages to allocate, rounded down */
lsr x10, x8, #(L2_SHIFT)