summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-08-21 06:33:10 +0000
committeradrian <adrian@FreeBSD.org>2012-08-21 06:33:10 +0000
commit45f36f602c7f4fd6db0285622e3da96b7c8663a8 (patch)
tree9232032ca112e74142212488ab47988f4c4c540b /sys/powerpc
parent5cf5b4b58d2e857efaf5c660f4642a197da6827d (diff)
downloadFreeBSD-src-45f36f602c7f4fd6db0285622e3da96b7c8663a8.zip
FreeBSD-src-45f36f602c7f4fd6db0285622e3da96b7c8663a8.tar.gz
Don't probe the openfirmware framebuffer if the system is a Wii or it
will crash. Submitted by: Margarida Gouveia
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/ofw/ofw_syscons.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/powerpc/ofw/ofw_syscons.c b/sys/powerpc/ofw/ofw_syscons.c
index 92e109b..0820d73 100644
--- a/sys/powerpc/ofw/ofw_syscons.c
+++ b/sys/powerpc/ofw/ofw_syscons.c
@@ -940,6 +940,12 @@ ofwfb_scidentify(driver_t *driver, device_t parent)
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
*/
OpenPOWER on IntegriCloud