# HG changeset patch # User alex # Date 1069713543 0 # Node ID 830c5c1800bc9047c340374be268a84846631aa4 # Parent 49de4a85957fcbe71180232a7f5fb4878b0a24d8 Save fs before calling vm86, this might eleminate bugs (if there were any) in cooperation of using vesa with win32 dlls. Patch by Peter Kosinar diff -r 49de4a85957f -r 830c5c1800bc osdep/lrmi.c --- a/osdep/lrmi.c Mon Nov 24 21:45:46 2003 +0000 +++ b/osdep/lrmi.c Mon Nov 24 22:39:03 2003 +0000 @@ -794,14 +794,16 @@ { unsigned int vret; sigset_t allsigs, cursigs; - unsigned long oldgs; + unsigned long oldgs, oldfs; while (1) { sigfillset(&allsigs); sigprocmask(SIG_SETMASK, &allsigs, &cursigs); asm volatile ("movl %%gs, %0" : "=g" (oldgs)); + asm volatile ("movl %%fs, %0" : "=g" (oldfs)); vret = lrmi_vm86(&context.vm); + asm volatile ("movl %0, %%fs" :: "g" (oldfs)); asm volatile ("movl %0, %%gs" :: "g" (oldgs)); sigprocmask(SIG_SETMASK, &cursigs, NULL);