Alexandre Julliard : libwine:
Added a couple of missing memory constraints in LDT syscalls.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 18 10:15:39 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: a8569bf7e0b52db40212e639e5d231dd786d06c4
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a8569bf7e0b52db40212e639e5d231dd786d06c4
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Apr 18 16:47:26 2006 +0200
libwine: Added a couple of missing memory constraints in LDT syscalls.
---
libs/wine/ldt.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/libs/wine/ldt.c b/libs/wine/ldt.c
index 6038c6f..9cb5ecf 100644
--- a/libs/wine/ldt.c
+++ b/libs/wine/ldt.c
@@ -80,7 +80,8 @@ static inline int modify_ldt( int func,
: "0" (SYS_modify_ldt),
"r" (func),
"c" (ptr),
- "d" (count) );
+ "d" (count),
+ "m" (*ptr) );
if (res >= 0) return res;
errno = -res;
return -1;
@@ -90,11 +91,11 @@ static inline int set_thread_area( struc
{
int res;
__asm__ __volatile__( "pushl %%ebx\n\t"
- "movl %2,%%ebx\n\t"
+ "movl %3,%%ebx\n\t"
"int $0x80\n\t"
"popl %%ebx"
- : "=a" (res)
- : "0" (243) /* SYS_set_thread_area */, "q" (ptr) );
+ : "=a" (res), "=m" (*ptr)
+ : "0" (243) /* SYS_set_thread_area */, "q" (ptr), "m" (*ptr) );
if (res >= 0) return res;
errno = -res;
return -1;
More information about the wine-cvs
mailing list