From 4c50a9bcfd5f92310d3a3493381c9042f6ef5df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 18 Feb 2013 02:42:03 +0100 Subject: [PATCH] U-Boot: move of_init() call before cpu_init() So we can use the OF wrapper there as well and copy code verbatim from the OF platform. --- src/system/boot/platform/u-boot/start.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/boot/platform/u-boot/start.cpp b/src/system/boot/platform/u-boot/start.cpp index 1bcc0d346f..15838ebc83 100644 --- a/src/system/boot/platform/u-boot/start.cpp +++ b/src/system/boot/platform/u-boot/start.cpp @@ -191,6 +191,9 @@ start_raw(int argc, const char **argv) serial_init(gFDT); console_init(); + // initialize the OpenFirmware wrapper + of_init(NULL); + cpu_init(); if (args.platform.fdt_data) { @@ -223,9 +226,6 @@ start_raw(int argc, const char **argv) args.platform.boot_tgz_data, args.platform.boot_tgz_size); } } - - // also initialize the OpenFirmware wrapper - of_init(NULL); } // if we get passed a uimage, try to find the second blob