diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-09-23 15:58:55 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-09-27 16:17:34 +1000 |
commit | b915c7088f2ff06d037f89a8251df9f312a43ab2 (patch) | |
tree | 3e02e3dc666f0430f11963d126072e97db55c231 /hdata/test | |
parent | 11c2a586c24890b50d986efa5f46fcccec5d80f4 (diff) | |
download | skiboot-b915c7088f2ff06d037f89a8251df9f312a43ab2.zip skiboot-b915c7088f2ff06d037f89a8251df9f312a43ab2.tar.gz skiboot-b915c7088f2ff06d037f89a8251df9f312a43ab2.tar.bz2 |
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 'hdata/test')
-rw-r--r-- | hdata/test/hdata_to_dt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c index 9142d24..06f9005 100644 --- a/hdata/test/hdata_to_dt.c +++ b/hdata/test/hdata_to_dt.c @@ -232,6 +232,8 @@ int main(int argc, char *argv[]) fclose(stderr); } + dt_root = dt_new_root(""); + if(parse_hdat(false) < 0) { fprintf(stderr, "FATAL ERROR parsing HDAT\n"); exit(EXIT_FAILURE); |