svn commit: r239479 - head/sys/powerpc/ofw

Adrian Chadd adrian at FreeBSD.org
Tue Aug 21 06:33:10 UTC 2012


Author: adrian
Date: Tue Aug 21 06:33:10 2012
New Revision: 239479
URL: http://svn.freebsd.org/changeset/base/239479

Log:
  Don't probe the openfirmware framebuffer if the system is a Wii or it
  will crash.
  
  Submitted by:	Margarida Gouveia

Modified:
  head/sys/powerpc/ofw/ofw_syscons.c

Modified: head/sys/powerpc/ofw/ofw_syscons.c
==============================================================================
--- head/sys/powerpc/ofw/ofw_syscons.c	Tue Aug 21 06:31:26 2012	(r239478)
+++ head/sys/powerpc/ofw/ofw_syscons.c	Tue Aug 21 06:33:10 2012	(r239479)
@@ -940,6 +940,12 @@ ofwfb_scidentify(driver_t *driver, devic
 	device_t child;
 
 	/*
+	 * The Nintendo Wii doesn't have open firmware, so don't probe ofwfb
+	 * because otherwise we will crash.
+	 */
+	if (strcmp(installed_platform(), "wii") == 0)
+		return;
+	/*
 	 * Add with a priority guaranteed to make it last on
 	 * the device list
 	 */


More information about the svn-src-head mailing list