]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, setup (2.6.30-stable) fix 80x34 and 80x60 console modes
authorMarc Aurele La France <root@ualberta.ca>
Tue, 30 Jun 2009 00:07:02 +0000 (18:07 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:40:09 +0000 (14:40 -0700)
commitfe9ec90d1c0248bd753c1b45e7e26aec71424657
treed5d8a860107c0512e879bde84ad755384153d1c7
parentb556f93a508bfda0a25c8beb06f400ce813df59d
x86, setup (2.6.30-stable) fix 80x34 and 80x60 console modes

Note: this is not in upstream since upstream is not affected due to the
      new "BIOS glovebox" subsystem.

As coded, most INT10 calls in video-vga.c allow the compiler to assume
EAX remains unchanged across them, which is not always the case.  This
triggers an optimisation issue that causes vga_set_vertical_end() to be
called with an incorrect number of scanlines.  Fix this by beefing up
the asm constraints on these calls.

Reported-by: Marc Aurele La France <tsi@xfree86.org>
Signed-off-by: Marc Aurele La France <tsi@xfree86.org>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/boot/video-vga.c