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
6bd508f8
Commit
6bd508f8
authored
Nov 01, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added clobber lists to the inline assembly functions.
parent
eb53c025
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
cppexcept.c
dlls/msvcrt/cppexcept.c
+5
-5
except.c
dlls/msvcrt/except.c
+4
-2
No files found.
dlls/msvcrt/cppexcept.c
View file @
6bd508f8
...
...
@@ -139,8 +139,8 @@ static DWORD cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* fram
inline
static
void
*
call_ebp_func
(
void
*
func
,
void
*
ebp
)
{
void
*
ret
;
__asm__
__volatile__
(
"pushl %%ebp; movl %2,%%ebp; call *%%eax;
;
popl %%ebp"
\
:
"=a"
(
ret
)
:
"0"
(
func
),
"g"
(
ebp
));
__asm__
__volatile__
(
"pushl %%ebp; movl %2,%%ebp; call *%%eax; popl %%ebp"
\
:
"=a"
(
ret
)
:
"0"
(
func
),
"g"
(
ebp
)
:
"ecx"
,
"edx"
,
"memory"
);
return
ret
;
}
...
...
@@ -151,16 +151,16 @@ inline static void call_copy_ctor( void *func, void *this, void *src, int has_vb
if
(
has_vbase
)
/* in that case copy ctor takes an extra bool indicating whether to copy the base class */
__asm__
__volatile__
(
"pushl $1; pushl %2; call *%0"
:
:
"r"
(
func
),
"c"
(
this
),
"g"
(
src
)
);
:
:
"r"
(
func
),
"c"
(
this
),
"g"
(
src
)
:
"eax"
,
"edx"
,
"memory"
);
else
__asm__
__volatile__
(
"pushl %2; call *%0"
:
:
"r"
(
func
),
"c"
(
this
),
"g"
(
src
)
);
:
:
"r"
(
func
),
"c"
(
this
),
"g"
(
src
)
:
"eax"
,
"edx"
,
"memory"
);
}
/* call the destructor of the exception object */
inline
static
void
call_dtor
(
void
*
func
,
void
*
object
)
{
__asm__
__volatile__
(
"call *%0"
:
:
"r"
(
func
),
"c"
(
object
)
);
__asm__
__volatile__
(
"call *%0"
:
:
"r"
(
func
),
"c"
(
object
)
:
"eax"
,
"edx"
,
"memory"
);
}
...
...
dlls/msvcrt/except.c
View file @
6bd508f8
...
...
@@ -71,11 +71,13 @@ inline static void call_finally_block( void *code_block, void *base_ptr )
:
:
"a"
(
code_block
),
"g"
(
base_ptr
));
}
static
DWORD
call_filter
(
void
*
func
,
void
*
arg
,
void
*
ebp
)
inline
static
DWORD
call_filter
(
void
*
func
,
void
*
arg
,
void
*
ebp
)
{
DWORD
ret
;
__asm__
__volatile__
(
"pushl %%ebp; pushl %3; movl %2,%%ebp; call *%%eax; popl %%ebp; popl %%ebp"
:
"=a"
(
ret
)
:
"0"
(
func
),
"g"
(
ebp
),
"g"
(
arg
)
);
:
"=a"
(
ret
)
:
"0"
(
func
),
"g"
(
ebp
),
"g"
(
arg
)
:
"ecx"
,
"edx"
,
"memory"
);
return
ret
;
}
#endif
...
...
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