Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a8569bf7
Commit
a8569bf7
authored
Apr 18, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Added a couple of missing memory constraints in LDT syscalls.
parent
470e987d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ldt.c
libs/wine/ldt.c
+5
-4
No files found.
libs/wine/ldt.c
View file @
a8569bf7
...
@@ -80,7 +80,8 @@ static inline int modify_ldt( int func, struct modify_ldt_s *ptr, unsigned long
...
@@ -80,7 +80,8 @@ static inline int modify_ldt( int func, struct modify_ldt_s *ptr, unsigned long
:
"0"
(
SYS_modify_ldt
),
:
"0"
(
SYS_modify_ldt
),
"r"
(
func
),
"r"
(
func
),
"c"
(
ptr
),
"c"
(
ptr
),
"d"
(
count
)
);
"d"
(
count
),
"m"
(
*
ptr
)
);
if
(
res
>=
0
)
return
res
;
if
(
res
>=
0
)
return
res
;
errno
=
-
res
;
errno
=
-
res
;
return
-
1
;
return
-
1
;
...
@@ -90,11 +91,11 @@ static inline int set_thread_area( struct modify_ldt_s *ptr )
...
@@ -90,11 +91,11 @@ static inline int set_thread_area( struct modify_ldt_s *ptr )
{
{
int
res
;
int
res
;
__asm__
__volatile__
(
"pushl %%ebx
\n\t
"
__asm__
__volatile__
(
"pushl %%ebx
\n\t
"
"movl %
2
,%%ebx
\n\t
"
"movl %
3
,%%ebx
\n\t
"
"int $0x80
\n\t
"
"int $0x80
\n\t
"
"popl %%ebx"
"popl %%ebx"
:
"=a"
(
res
)
:
"=a"
(
res
)
,
"=m"
(
*
ptr
)
:
"0"
(
243
)
/* SYS_set_thread_area */
,
"q"
(
ptr
)
);
:
"0"
(
243
)
/* SYS_set_thread_area */
,
"q"
(
ptr
)
,
"m"
(
*
ptr
)
);
if
(
res
>=
0
)
return
res
;
if
(
res
>=
0
)
return
res
;
errno
=
-
res
;
errno
=
-
res
;
return
-
1
;
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment