Subject: ofb, wsdisplay and so on
To: netbsd-macppc <port-macppc@netbsd.org>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 01/28/2005 23:57:26
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've been taking ofb apart now and ran into the following problem:
To implement some kind of initial console I used more or less what 
ofb_cnattach did, simplified a bit to mimic OF's output. To make it 
work I have to call wsdisplay_cnattach. Later, when the real driver 
should take over is calls wsdisplay_cnattach again which fails because 
there's some code which prevents attaching a console a 2nd time. On 
other ports ( namely sparc64) this is no problem because the initial 
console doesn't use wsdisplay
So - that's obviously not the right way to do it. Is there a clean way 
to reset wsdisplay so I can attach a console again, this time for real? 
Can I use rasops/wsdisplay for the initial console at all or should I 
try to use OF instead? Making the framebuffer drivers aware of a 
possible initial wscons console could be problematic, maybe 
wsdisplay_cnattach should not fail when called a 2nd time but just 
replace the console instead. Or is there another way to attach an 
initial wsdisplay console when the kernel starts?

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

iQEVAwUBQfsXt8pnzkX8Yg2nAQJfagf/WTM3KthBaKsY9UmMuWMXNiT8IoYWBUrr
BzjBAMmjwSv/cxkEFU87oMthX3sjmR8wW47f0AYrFA6nb8jQoEMRGZXO3AO5WYpS
yJ9ry9Q10bNmDlBxafHlcMwtoxWdiJJeacCCG5w7UQpSUcGFoxWqV8Fs+g2+5vCM
qjxdOxCA+Lfbua5BeHHYKMWzg5F0JHuaGMTOTWygtP2tTVfR+g2AazF6D+KJDTnt
uIdRjQhUbK9CB2Ey/xPegW1refZ9SSaTz3IRPCs+i8/FTg+nSMKc2XClfvozkXv7
tGQBF6RkdaSeG8F1eT3cmYgc1D/f01cKr/iST4CB8zRD8bs+HycQfw==
=UdU6
-----END PGP SIGNATURE-----