freebsd-dev/sys/dev/vt/hw
Marcel Moolenaar 6280434f9a Fix text mode operation.
We first map 64KB at 0xA0000 and then determine whether to work
in text or graphics mode.  When graphics mode, the mapping is
precisely what we need and everything is fine.  But text mode,
has the frame buffer relocated to 0xB8000. We didn't map that
much to safely add 0x18000 bytes to the base address.

Now we first check whether to work in text or graphics mode and
then map the frame buffer at the right address and with the
right size (0xA0000+64KB for graphics, 0xB8000+32KB for text).

PR:		202276
Tested by:	ed@
2015-08-13 14:43:11 +00:00
..
efifb Better support memory mapped console devices, such as VGA and EFI 2015-08-12 15:26:32 +00:00
fb - Nuke dupe $FreeBSD$. 2015-07-27 14:03:34 +00:00
ofwfb Let unchangeable 8-bit frame buffers have vaguely correct colors. 2015-03-10 17:04:11 +00:00
vga Fix text mode operation. 2015-08-13 14:43:11 +00:00