]> xenbits.xensource.com Git - seabios.git/commit
vgabios: Don't use extra stack if it appears a modern OS is in use
authorKevin O'Connor <kevin@koconnor.net>
Tue, 17 Mar 2015 15:37:25 +0000 (11:37 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 18 Mar 2015 05:46:56 +0000 (01:46 -0400)
commit251e26388b83f4bfd8a5ae28263db295e5b683b5
tree0d4c0430771f91336580d1ed83510a8524d65597
parent184496863a40ac1eff5612ba0da11399535bfa40
vgabios: Don't use extra stack if it appears a modern OS is in use

If the last mode set (while not in vm86 mode) was done from a VBE mode
set call then disable the extra stack.  This works under the premise
that only a modern OS would invoke the VBE mode changing facilities
and a modern OS would always call the vgabios with sufficient stack
space.

This is an ugly hack to work around a problem Windows Vista (and
possibly later Windows releases) has with the VGA BIOS using a stack
in the e-segment.

Reported-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/x86.h
vgasrc/vgabios.c
vgasrc/vgabios.h
vgasrc/vgaentry.S