xserver/hw
Luc Verhaegen a9ddd6b4aa x86emu: fix jump_near_IMM to handle DATA: flag correctly.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=24348

Before (data flag ignored -> broken):
66                  DATA:
e944f1              JMP       1ff6

After (fixed):
66                  DATA:
e944f1ffff          JMP       00001ff8

This subtle difference in the length of decoded instruction meant
that the VBE call jumped to the routine setting AX=0x14F (VBE Failed)
instead of the routine that set AX=0x4F (VBE success).

The ability to run the same code in vm86 significantly aided the
debugging of this issue. Those X.org developers who would like to drop
vm86 better take special care towards _all_ vesa bugs, as those will
expose further issues.

Patch applies easily to even xserver 1.4.2.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Tested-by: Luc Verhaegen <libv@skynet.be>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit cc2c73ddcb)
2011-01-11 11:14:49 -08:00
..
dmx Fix screen number checks. 2010-12-02 12:14:44 -08:00
kdrive Fix screen number checks. 2010-12-02 12:14:44 -08:00
vfb Xvfb: Usage message typo fix. 2010-04-23 13:42:34 +10:00
xfree86 x86emu: fix jump_near_IMM to handle DATA: flag correctly. 2011-01-11 11:14:49 -08:00
xnest xnest: Don't ignore errors from DeviceCursorInitialize. 2010-06-11 10:40:54 +10:00
xquartz XQuartz: Bump bundle version to 2.5.3 2010-07-31 14:48:22 -07:00
xwin Cygwin/X: Make X -> XWin symlink during install 2010-03-22 00:48:33 -05:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00