]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3e6af1038d41b958d40b2b078c8cd07392c002c
tree25e4fb9f3984bd2cd9621fb599e964975fad2028
parentbd821a971bbeda9fa6f48e9edcc3e162d54efda6
x86, setup: fix the setting of 480-line VGA modes

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>
arch/x86/boot/video-vga.c