From 300d10ae0a3a5b835f2176d586541f84f97b0df0 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 11 Nov 2003 06:47:00 +0000 Subject: 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. --- sys/sparc64/creator/creator_upa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/sparc64') 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 { -- cgit v1.1