vgabios: Framebuffer fixes for CGA and planar graphics modes.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 1 Jan 2012 15:33:51 +0000 (10:33 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 1 Jan 2012 15:33:51 +0000 (10:33 -0500)
commitae6eb8f5d3c076e54709f87da8a0ba1985596cb1
tree41889ca152166985f32c6d25fee1ee8b4a5cb574
parent161d201affa5dd23a39a0de9a0743b857448c4b6
vgabios: Framebuffer fixes for CGA and planar graphics modes.

Fix missing divide by 2 in CGA mode scroll.  Consistently use
cheight/2 for all uses.

Planar graphics character write has a read to video memory with a side
effect - mark that as volatile so the compiler doesn't optimize it
away.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
vgasrc/vgafb.c