[Mplayer-cvslog] CVS: main/osdep lrmi.c,1.4,1.5

Alex Beregszaszi alex at mplayerhq.hu
Mon Nov 24 23:39:30 CET 2003


Update of /cvsroot/mplayer/main/osdep
In directory mail:/var/tmp.root/cvs-serv31006

Modified Files:
	lrmi.c 
Log Message:
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 <goober at ksp.sk>

Index: lrmi.c
===================================================================
RCS file: /cvsroot/mplayer/main/osdep/lrmi.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- lrmi.c	13 Nov 2003 20:53:40 -0000	1.4
+++ lrmi.c	24 Nov 2003 22:39:03 -0000	1.5
@@ -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);
 



More information about the MPlayer-cvslog mailing list