From b011337e20bf312aa0d12536b86d51f4267f0ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 17 May 2012 20:46:46 +0200 Subject: [PATCH] U-Boot: save passed FDT and call common code * should work better this way :D --- src/system/boot/platform/u-boot/start.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/system/boot/platform/u-boot/start.cpp b/src/system/boot/platform/u-boot/start.cpp index 559fbc0499..79dc482406 100644 --- a/src/system/boot/platform/u-boot/start.cpp +++ b/src/system/boot/platform/u-boot/start.cpp @@ -56,6 +56,8 @@ extern struct image_header *gUImage; extern uboot_gd *gUBootGlobalData; extern uint32 gUBootOS; +void * gFDT = NULL; + static uint32 sBootOptions; @@ -146,7 +148,8 @@ extern "C" int start_linux_ppc_fdt(void *fdt, long/*UNUSED*/, long/*UNUSED*/, uint32 epapr_magic, uint32 initial_mem_size) { - return 1; + gFDT = fdt; //XXX: make a copy? + return start_raw(0, NULL); }