Subject: Re: wscons versus z8530tty
To: Julian Coleman <jdc@coris.org.uk>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-kern
Date: 02/08/2007 14:16:12
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Feb 8, 2007, at 07:44, Julian Coleman wrote:

> Hi,
>
> I've run into a problem trying to get wscons to work on a old sun-4, 
> because
> of the order in which devices attach.  On newer sparc and sparc64 
> machines,
> zs* and zstty* attach before the frame buffers but on this sun-4, the 
> frame
> buffer attaches first.
>
> The reason that the ordering causes a problem is because both the 
> zstty code
> and the wscons code set cn_tab->cn_dev.  If the frame buffer (and 
> wsdisplay)
> attach last, then cn_tab->cn_dev is set to the wscons device and all 
> is fine.
> However, if the zstty's attach last, then cn_tab->cn_dev is set to the 
> zstty
> device, and console input/output is broken (the rest of the code is 
> assuming
> wscons).

Err, zstty does that even if it's not the console? I'd call that a bug.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRct2/MpnzkX8Yg2nAQJAGwgArrtGpmSR1/qmw+IINjYqRh7hCXF0ql2D
f5d15qakColy0QsVriBIH3WHG47aMQLGRi4RD/QgjARtxM+7r1ugu5M5fBRdEJ4y
g2V58kdc2MdxrfpcLwREnJRd1l6/zPDzVkXONKAXN45L6xS4pLeDCMhZQ2fazU+f
/6KQfPOrd2yLhBiBLEgOJve7zFLgpuiE9ebyzDtfjbtD8i6AoVRYeAgDuZgs/79Z
qbxYG6XifsE4Cze1OJcobVzHrN7QyduB6/BlBGUqpbDsjNPre23NteHIKzzhyl1Q
pJUXwXoQAEUevDam1qP4t6ViDukcgAsvgaeMX/cII7BiulRDtaw6Bg==
=weu9
-----END PGP SIGNATURE-----