From owner-freebsd-bugs Wed Nov 15 14:16:00 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA09395 for bugs-outgoing; Wed, 15 Nov 1995 14:16:00 -0800 Received: from www.cybercity.dk ([194.16.56.1]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA09373 ; Wed, 15 Nov 1995 14:15:51 -0800 Received: from SandBox by www.cybercity.dk via ESMTP (940816.SGI.8.6.9/940406.SGI.AUTO) id XAA08947; Wed, 15 Nov 1995 23:19:02 +0100 Received: (from sos@localhost) by SandBox (8.6.11/8.6.9) id XAA00502; Wed, 15 Nov 1995 23:14:12 +0100 From: Soren Schmidt Message-Id: <199511152214.XAA00502@SandBox> Subject: Re: "Bug" in syscons? To: bde@zeta.org.au (Bruce Evans) Date: Wed, 15 Nov 1995 23:14:04 +0100 (MET) Cc: darrylo@hpnmhjw.sr.hp.com, freebsd-bugs@FreeBSD.org, freebsd-questions@FreeBSD.org In-Reply-To: <199511151306.AAA04591@godzilla.zeta.org.au> from "Bruce Evans" at Nov 16, 95 00:06:23 am Reply-to: sos@FreeBSD.org X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1531 Sender: owner-bugs@FreeBSD.org Precedence: bulk In reply to Bruce Evans who wrote: > > >which solves my corrupt font problems with syscons. Can anyone tell me > >what the old 2.0.5 syscons is trying to do with the "weird" VGA register > >values? I know what my "fixed" values are doing, but what are the old > >values trying to do? (I just ordered a copy of Richard Wilton's > >"Programmer's Guide to PC Video Systems", but it hasn't arrived yet.) > > In set_font_mode(): > old: > > outb(TSIDX, 0x02); outb(TSREG, 0x04); > >! outb(TSIDX, 0x04); outb(TSREG, 0x06); > > outb(GDCIDX, 0x04); outb(GDCREG, 0x02); > > outb(GDCIDX, 0x05); outb(GDCREG, 0x00); > >! outb(GDCIDX, 0x06); outb(GDCREG, 0x05); > new: > > outb(TSIDX, 0x02); outb(TSREG, 0x04); > >! outb(TSIDX, 0x04); outb(TSREG, 0x07); > > outb(GDCIDX, 0x04); outb(GDCREG, 0x02); > > outb(GDCIDX, 0x05); outb(GDCREG, 0x00); > >! outb(GDCIDX, 0x06); outb(GDCREG, 0x00); > > TS reg 4 bit 0x01 is "Reserved" for the ET4000. Better not use it. > GDC reg 6 bit 0x01 is "Graphics mode enable"; bits 0x04 and 0x08 > select the memory map: > 0x00: 128K at 0xA0000 > 0x04: 64K at 0xA0000 > 0x08: 32K at 0xB0000 > 0x0C: 32K at 0xB8000 > > Bruce Excatly, I've allready sent mail directly, this patch blows up on all my machines, I'll investigate further though... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Soren Schmidt (sos@FreeBSD.org) FreeBSD Core Team So much code to hack -- so little time ..