]> git.baikalelectronics.ru Git - kernel.git/commit
[x86 setup] Save/restore DS around invocations of INT 10h
authorH. Peter Anvin <hpa@zytor.com>
Mon, 16 Jul 2007 18:58:24 +0000 (11:58 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 18 Jul 2007 18:36:17 +0000 (11:36 -0700)
commit4e3c838e82fbb1b04ad3ada5ac521903994e9691
treecf0f803ee6f3dcaa323f171b58da0bf0b70c9899
parentdeea04d1bbada4b69405471b3bd3de65b1a910ce
[x86 setup] Save/restore DS around invocations of INT 10h

There exists at least one card, Trident TVGA8900CL (BIOS dated 1992/9/8)
which clobbers DS when "scrolling in an SVGA text mode of more than
800x600 pixels."  Although we are extremely unlikely to run into that
situation, it is cheap insurance to save and restore DS, and it only adds
a grand total of 50 bytes to the total output.

Pointed out by Etienne Lorrain.

Cc: Etienne Lorrain <etienne_lorrain@yahoo.fr>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/i386/boot/tty.c
arch/i386/boot/video.h