x86, setup: fix the setting of 480-line VGA modes
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 18 Mar 2009 23:54:05 +0000 (16:54 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 18 Mar 2009 23:54:05 +0000 (16:54 -0700)
Impact: fix rarely-used feature

The VGA Miscellaneous Output Register is read from address 0x3CC but
written to address 0x3C2.  This was missed when this code was
converted from assembly to C.  While we're at it, clean up the code by
making the overflow bits and the math used to set the bits explicit.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>

No differences found