summaryrefslogtreecommitdiffstats
path: root/loader/ldt_keeper.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-09 03:27:29 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-09 03:27:29 +0000
commitb1d29c43a634dc575f064fcb437019c28d931c23 (patch)
treeb620589dc706d4eb2af34ec9e77a9f4d247086b8 /loader/ldt_keeper.c
parent9197e20c2013a477d36989d758006b4ef52f058b (diff)
downloadmpv-b1d29c43a634dc575f064fcb437019c28d931c23.tar.bz2
mpv-b1d29c43a634dc575f064fcb437019c28d931c23.tar.xz
Eugene's fixes to work with QuickTime.qts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2780 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/ldt_keeper.c')
-rw-r--r--loader/ldt_keeper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c
index 18ddb22ce3..5641ceaf5c 100644
--- a/loader/ldt_keeper.c
+++ b/loader/ldt_keeper.c
@@ -80,7 +80,7 @@ struct modify_ldt_ldt_s {
*
*/
-static void* fs_seg = NULL;
+void* fs_seg = NULL;
static char* prev_struct = NULL;
/**
* here is a small logical problem with Restore for multithreaded programs -
@@ -164,6 +164,8 @@ void Setup_LDT_Keeper(void)
perror("ERROR: Couldn't allocate memory for fs segment");
return;
}
+ printf("fs seg %p\n", fs_seg);
+ *(void**)((char*)fs_seg+0x18) = fs_seg;
array.base_addr=(int)fs_seg;
array.entry_number=TEB_SEL_IDX;
array.limit=array.base_addr+getpagesize()-1;