Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Aug 2010 12:15:46 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r210756 - user/nwhitehorn/ps3/powerpc/aim
Message-ID:  <201008021215.o72CFk1A018916@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008021215.o72CFk1A018916>