Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 1995 23:14:04 +0100 (MET)
From:      Soren Schmidt <sos@FreeBSD.org>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        darrylo@hpnmhjw.sr.hp.com, freebsd-bugs@FreeBSD.org, freebsd-questions@FreeBSD.org
Subject:   Re: "Bug" in syscons?
Message-ID:  <199511152214.XAA00502@SandBox>
In-Reply-To: <199511151306.AAA04591@godzilla.zeta.org.au> from "Bruce Evans" at Nov 16, 95 00:06:23 am

next in thread | previous in thread | raw e-mail | index | archive | help
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
..



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511152214.XAA00502>