diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2003-11-11 06:47:00 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2003-11-11 06:47:00 +0000 |
commit | 7b9346ced85584455124b3aa26ba05c9dad54232 (patch) | |
tree | 064dcf1064027a181d763255c3a8ce1be9ed6653 /sys/sparc64/creator | |
parent | 00199175429f8bacd1c2223af6f2ffd6c2792ee4 (diff) | |
download | src-7b9346ced85584455124b3aa26ba05c9dad54232.tar.gz src-7b9346ced85584455124b3aa26ba05c9dad54232.zip |
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.
Notes
Notes:
svn path=/head/; revision=122465
Diffstat (limited to 'sys/sparc64/creator')
-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 0018bdd2f2a2..cb4762d09d06 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 { |