[haiku-commits] haiku: hrev44179 - src/system/boot/platform/u-boot

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 17 May 2012 20:47:49 +0200 (CEST)

hrev44179 adds 1 changeset to branch 'master'
old head: de1c936185e41ef76dfed77a3814682046e5560e
new head: b011337e20bf312aa0d12536b86d51f4267f0ffc

----------------------------------------------------------------------------

b011337: U-Boot: save passed FDT and call common code
  
  * should work better this way :D

                                          [ François Revol <revol@xxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44179
Commit:      b011337e20bf312aa0d12536b86d51f4267f0ffc
URL:         http://cgit.haiku-os.org/haiku/commit/?id=b011337
Author:      François Revol <revol@xxxxxxx>
Date:        Thu May 17 18:46:46 2012 UTC

----------------------------------------------------------------------------

1 file changed, 4 insertions(+), 1 deletion(-)
src/system/boot/platform/u-boot/start.cpp |    5 ++++-

----------------------------------------------------------------------------

diff --git a/src/system/boot/platform/u-boot/start.cpp 
b/src/system/boot/platform/u-boot/start.cpp
index 559fbc0..79dc482 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);
 }
 
 


Other related posts:

  • » [haiku-commits] haiku: hrev44179 - src/system/boot/platform/u-boot - revol