Skip to content

Commit 37e5c69

Browse files
pcercueitsbogend
authored andcommitted
MIPS: head.S: Init fw_passed_dtb to builtin DTB
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 <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent c3028b9 commit 37e5c69

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/mips/kernel/head.S

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ NESTED(kernel_entry, 16, sp) # kernel entry point
111111
move t2, a1
112112
beq a0, t1, dtb_found
113113

114+
#ifdef CONFIG_BUILTIN_DTB
115+
PTR_LA t2, __dtb_start
116+
PTR_LA t1, __dtb_end
117+
bne t1, t2, dtb_found
118+
#endif /* CONFIG_BUILTIN_DTB */
119+
114120
li t2, 0
115121
dtb_found:
116122
#endif /* CONFIG_USE_OF */

0 commit comments

Comments
 (0)