summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2017-01-23 13:43:51 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2017-01-23 13:43:51 +0000
commitacfffe96de07700a07dad2ad9b29b70151e1e2b5 (patch)
tree80f989dde096acde0fcee180e735ff9a6b5c4d7b /sys
parent0d9512f2e351267c1cb8966f48e87eb3f826bb31 (diff)
Create a mapping for the FDT if it happens to be on a different 1 GiB
mapping than the kernel.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm64/arm64/locore.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/arm64/arm64/locore.S b/sys/arch/arm64/arm64/locore.S
index da4a1d677fc..a193c517f1c 100644
--- a/sys/arch/arm64/arm64/locore.S
+++ b/sys/arch/arm64/arm64/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.5 2017/01/23 13:39:24 patrick Exp $ */
+/* $OpenBSD: locore.S,v 1.6 2017/01/23 13:43:50 patrick Exp $ */
/*-
* Copyright (c) 2012-2014 Andrew Turner
* All rights reserved.
@@ -404,6 +404,13 @@ create_pagetables:
mov x8, x9 /* VA start (== PA start) */
bl build_section_pagetable
+ /* Create a mapping for the FDT */
+ mov x6, x27 /* The initial page table */
+ mov x7, #NORMAL_MEM // #NORMAL
+ mov x9, x23
+ mov x8, x9 /* VA start (== PA start) */
+ bl build_section_pagetable
+
/* Restore the Link register */
mov x30, x5
ret