summaryrefslogtreecommitdiffstats
path: root/core/init.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2016-09-23 15:58:55 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-09-27 16:17:34 +1000
commitb915c7088f2ff06d037f89a8251df9f312a43ab2 (patch)
tree3e02e3dc666f0430f11963d126072e97db55c231 /core/init.c
parent11c2a586c24890b50d986efa5f46fcccec5d80f4 (diff)
downloadblackbird-skiboot-b915c7088f2ff06d037f89a8251df9f312a43ab2.tar.gz
blackbird-skiboot-b915c7088f2ff06d037f89a8251df9f312a43ab2.zip
core/init: create the dt root in main_cpu_entry
This is created seperately when parsing the hdat and when expanding the DT. There is no real reason for this and it makes more sense to create it in the main init path. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/init.c')
-rw-r--r--core/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/init.c b/core/init.c
index d1c70b98..db03d977 100644
--- a/core/init.c
+++ b/core/init.c
@@ -707,6 +707,9 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt)
* Hack alert: When entering via the OPAL entry point, fdt
* is set to -1, we record that and pass it to parse_hdat
*/
+
+ dt_root = dt_new_root("");
+
if (fdt == (void *)-1ul) {
if (parse_hdat(true) < 0)
abort();
OpenPOWER on IntegriCloud