• O
    vga: vgastate fix · 0449359f
    Ondrej Zajicek 提交于
    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: NOndrej Zajicek <santiago@crfreenet.org>
    Signed-off-by: NAntonino Daplas <adaplas@gmail.com>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    0449359f
vgastate.c 13.3 KB