From 9b73270ff645abbeb18366ff4f2003504cf27521 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 8 Nov 2001 02:47:46 +0000 Subject: disabled LDT allocation for FS segment. this was causing much trouble so i disabled it as someone did in previous version. ldt_keeper explicitely states that it should be initialized before any threads are created, which wouldn't be possible under current xine plugin architeture except with some nasty hack. FIXME: we need to check any potential problems of running dlls with default FS segment. CVS patchset: 996 CVS date: 2001/11/08 02:47:46 --- src/libw32dll/w32codec.c | 4 ++-- src/libw32dll/wine/ldt_keeper.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c index 629cf9b29..1588663af 100644 --- a/src/libw32dll/w32codec.c +++ b/src/libw32dll/w32codec.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: w32codec.c,v 1.37 2001/11/07 21:38:03 miguelfreitas Exp $ + * $Id: w32codec.c,v 1.38 2001/11/08 02:47:46 miguelfreitas Exp $ * * routines for using w32 codecs * @@ -813,7 +813,7 @@ video_decoder_t *init_video_decoder_plugin (int iface_version, config_values_t * this->prof_rgb2yuv = profiler_allocate_slot ("w32codec rgb2yuv convert"); /* FIXME: we need a kind of destructor to call Restore_LDT_Keeper() */ - Setup_LDT_Keeper(); + //Setup_LDT_Keeper(); return (video_decoder_t *) this; } diff --git a/src/libw32dll/wine/ldt_keeper.c b/src/libw32dll/wine/ldt_keeper.c index 18ddb22ce..273bccc2e 100644 --- a/src/libw32dll/wine/ldt_keeper.c +++ b/src/libw32dll/wine/ldt_keeper.c @@ -92,9 +92,11 @@ extern "C" #endif void Setup_FS_Segment(void) { +/* __asm__ __volatile__( "movl %0,%%eax; movw %%ax, %%fs" : : "i" (TEB_SEL) ); +*/ } #ifdef __linux__ -- cgit v1.2.3