diff options
author | jake <jake@FreeBSD.org> | 2003-11-11 06:47:00 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-11-11 06:47:00 +0000 |
commit | 300d10ae0a3a5b835f2176d586541f84f97b0df0 (patch) | |
tree | 064dcf1064027a181d763255c3a8ce1be9ed6653 /sys | |
parent | 47e6302cb24801f5fa8e757115fb1c2da29bc0a3 (diff) | |
download | FreeBSD-src-300d10ae0a3a5b835f2176d586541f84f97b0df0.zip FreeBSD-src-300d10ae0a3a5b835f2176d586541f84f97b0df0.tar.gz |
Assume that unit 0 is the graphics console initialized by syscons, instead
of testing if the device's firmware node is stdout. This allows syscons to
be used when the firmware's input and output is the serial console.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/creator/creator_upa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/creator/creator_upa.c b/sys/sparc64/creator/creator_upa.c index 0018bdd..cb4762d 100644 --- a/sys/sparc64/creator/creator_upa.c +++ b/sys/sparc64/creator/creator_upa.c @@ -169,7 +169,7 @@ creator_upa_attach(device_t dev) OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); node = nexus_get_node(dev); unit = device_get_unit(dev); - if (node == OF_instance_to_package(stdout)) { + if (unit == 0 /*node == OF_instance_to_package(stdout)*/) { sc = (struct creator_softc *)vid_get_adapter(0); device_set_softc(dev, sc); } else { |