projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3028b9
)
MIPS: head.S: Init fw_passed_dtb to builtin DTB
author
Paul Cercueil
<paul@crapouillou.net>
Thu, 30 Jul 2020 16:12:30 +0000
(18:12 +0200)
committer
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Fri, 31 Jul 2020 15:48:02 +0000
(17:48 +0200)
Init the 'fw_passed_dtb' pointer to the buit-in Device Tree blob when it
has been compiled in with CONFIG_BUILTIN_DTB.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/head.S
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/head.S
b/arch/mips/kernel/head.S
index 3b02ffe46304bf157ce14a9afd83b553da53522f..7dd234e788e63ec4945d6fd8b3f03f208fc17ebe 100644
(file)
--- a/
arch/mips/kernel/head.S
+++ b/
arch/mips/kernel/head.S
@@
-111,6
+111,12
@@
NESTED(kernel_entry, 16, sp) # kernel entry point
move t2, a1
beq a0, t1, dtb_found
+#ifdef CONFIG_BUILTIN_DTB
+ PTR_LA t2, __dtb_start
+ PTR_LA t1, __dtb_end
+ bne t1, t2, dtb_found
+#endif /* CONFIG_BUILTIN_DTB */
+
li t2, 0
dtb_found:
#endif /* CONFIG_USE_OF */