From owner-freebsd-hackers Thu Jan 27 15:58:23 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from server.baldwin.cx (jobaldwi.campus.vt.edu [198.82.67.146]) by hub.freebsd.org (Postfix) with ESMTP id 0040D15853; Thu, 27 Jan 2000 15:58:17 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from john.baldwin.cx (john [10.0.0.2]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id SAA64004; Thu, 27 Jan 2000 18:57:58 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-Id: <200001272357.SAA64004@server.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200001272350.IAA11592@zodiac.mech.utsunomiya-u.ac.jp> Date: Thu, 27 Jan 2000 18:57:58 -0500 (EST) From: John Baldwin To: Kazutaka YOKOTA Subject: Re: VGA card (mis)behavior Cc: hackers@FreeBSD.org, Brian Fundakowski Feldman Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 27-Jan-00 Kazutaka YOKOTA wrote: >>There is a way to detect monochrome or color via one of the 0x3dX registers. >>It's the register that tells you if the rest of the vido registers are at 0x3b >>X >>(mono) or 0x3cX (color). I can't remember which bit in which register that is >>though. If someone can find that out, then we can fix this properly. > > The word at 0x463 in the BIOS data area tells at which I/O address the > CRTC is sitting on. It's 0x3b4 for the monochrome adapter and EGA/VGA > in a monochrome mode, and 0x3d4 for CGA and EGA/VGA in a color mode. > > So, we should try to set the mode 3 when we find 0x3d4 and the mode 7 > for 0x3b4. I knew someone would know. :) I'll try to work on a patch for this tonight if I have time. Would it be ok if this was done very early on, like before the loader binary itself was started? IOW, do it in btxldr? We might also want to do it in boot1. > Kazu -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message