vgabios: Change vga_set_mode() to directly setup BDA.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 31 Dec 2011 22:24:11 +0000 (17:24 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 31 Dec 2011 22:29:36 +0000 (17:29 -0500)
commitcecbc5da2c5826e35ba402b448f736fe3fa5008d
tree0dc1725f6cbe3cbdba0ae56bea1be28b85f2814a
parent323d8c635750ff4091ae1ba6f103b455828d53b6
vgabios: Change vga_set_mode() to directly setup BDA.

The calls to set_cursor_shape, set_cursor_pos, and set_active_page
have no impact other than to set the BDA variables, because the
standard vga mode switch already programed the registers these
functions set.  So, just setup the BDA directly.

The stdvga_set_text_block_specifier call is unnecessary - it sets
a register which is already programmed that way.

Call stdvga_get_crtc() to obtain the crtc address instead of inferring
it from the memory model.

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