Skip to content
  • Ondrej Zajicek's avatar
    vga: vgastate fix · 0449359f
    Ondrej Zajicek authored
    
    
    1) sets 'palette access disabled' during read from AR10.
       This is usually documented as needed for access AR01-AR0F,
       but on ARK Logic card it is needed for AR10 (otherwise read
       returns some nonsence and save_vga_text() returns before do
       anything).
    
    2) do not restore AR10, because it was not changed during
    
    3) remove modification of misc reg:
            /* force graphics mode */
            vga_w(state->vgabase, VGA_MIS_W, misc | 1);
    
       as comment is misleading - LSB of misc reg does not set/reset graphics
       mode, but set color/mono adresses of CRT and some other regs.
       but these regs are not used during save/restore fonts.
       (it worked even when (misc | 1) was replaced by (misc & ~1) ).
    
    Signed-off-by: default avatarOndrej Zajicek <santiago@crfreenet.org>
    Signed-off-by: default avatarAntonino Daplas <adaplas@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    0449359f