Skip to content
Commit 5f641356 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

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: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent be721696
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment