svn commit: r210756 - user/nwhitehorn/ps3/powerpc/aim

Nathan Whitehorn nwhitehorn at FreeBSD.org
Mon Aug 2 12:15:46 UTC 2010


Author: nwhitehorn
Date: Mon Aug  2 12:15:46 2010
New Revision: 210756
URL: http://svn.freebsd.org/changeset/base/210756

Log:
  Add support for static FDT blobs, and declare FDT to be "real mode" for now,
  so that the system won't try to read its translations. This is a hack.

Modified:
  user/nwhitehorn/ps3/powerpc/aim/ofw_machdep.c

Modified: user/nwhitehorn/ps3/powerpc/aim/ofw_machdep.c
==============================================================================
--- user/nwhitehorn/ps3/powerpc/aim/ofw_machdep.c	Mon Aug  2 12:15:22 2010	(r210755)
+++ user/nwhitehorn/ps3/powerpc/aim/ofw_machdep.c	Mon Aug  2 12:15:46 2010	(r210756)
@@ -333,6 +333,12 @@ OF_initial_setup(void *fdt_ptr, void *ju
 	#endif
 
 	fdt = fdt_ptr;
+
+#ifdef FDT_DTB_STATIC
+	/* Check for a statically included blob */
+	if (fdt == NULL)
+		fdt = &fdt_static_dtb;
+#endif
 }
 
 boolean_t
@@ -362,6 +368,7 @@ OF_bootstrap()
 		 */
 		ofw_quiesce();
 	} else {
+		ofw_real_mode = 1;  /* XXX: don't use special virt mode code */
 		status = OF_install(OFW_FDT, 0);
 
 		if (status != TRUE)


More information about the svn-src-user mailing list