Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b6efd13e
Commit
b6efd13e
authored
Jun 25, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add call frame annotations in x86 assembly code.
parent
0cb406ef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
cproxy.c
dlls/rpcrt4/cproxy.c
+2
-0
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+11
-2
No files found.
dlls/rpcrt4/cproxy.c
View file @
b6efd13e
...
...
@@ -76,8 +76,10 @@ struct thunk {
extern
void
call_stubless_func
(
void
);
__ASM_GLOBAL_FUNC
(
call_stubless_func
,
"pushl %esp
\n\t
"
/* pointer to index */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"call "
__ASM_NAME
(
"ObjectStubless"
)
__ASM_STDCALL
(
4
)
"
\n\t
"
"popl %edx
\n\t
"
/* args size */
__ASM_CFI
(
".cfi_adjust_cfa_offset -4
\n\t
"
)
"movl (%esp),%ecx
\n\t
"
/* return address */
"addl %edx,%esp
\n\t
"
"jmp *%ecx"
);
...
...
dlls/rpcrt4/ndr_stubless.c
View file @
b6efd13e
...
...
@@ -867,9 +867,14 @@ __declspec(naked) LONG_PTR __cdecl call_server_func(SERVER_ROUTINE func, unsigne
LONG_PTR
__cdecl
call_server_func
(
SERVER_ROUTINE
func
,
unsigned
char
*
args
,
unsigned
int
stack_size
);
__ASM_GLOBAL_FUNC
(
call_server_func
,
"pushl %ebp
\n\t
"
"movl %esp, %ebp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
__ASM_CFI
(
".cfi_rel_offset %ebp,0
\n\t
"
)
"movl %esp,%ebp
\n\t
"
__ASM_CFI
(
".cfi_def_cfa_register %ebp
\n\t
"
)
"pushl %edi
\n\t
"
/* Save registers */
__ASM_CFI
(
".cfi_rel_offset %edi,-4
\n\t
"
)
"pushl %esi
\n\t
"
__ASM_CFI
(
".cfi_rel_offset %esi,-8
\n\t
"
)
"movl 16(%ebp), %eax
\n\t
"
/* Get stack size */
"subl %eax, %esp
\n\t
"
/* Make room in stack for arguments */
"andl $~15, %esp
\n\t
"
/* Make sure stack has 16-byte alignment for Mac OS X */
...
...
@@ -882,9 +887,13 @@ __ASM_GLOBAL_FUNC(call_server_func,
"call *8(%ebp)
\n\t
"
/* Call function */
"leal -8(%ebp), %esp
\n\t
"
/* Restore stack */
"popl %esi
\n\t
"
/* Restore registers */
__ASM_CFI
(
".cfi_same_value %esi
\n\t
"
)
"popl %edi
\n\t
"
__ASM_CFI
(
".cfi_same_value %edi
\n\t
"
)
"popl %ebp
\n\t
"
"ret
\n
"
)
__ASM_CFI
(
".cfi_def_cfa %esp,4
\n\t
"
)
__ASM_CFI
(
".cfi_same_value %ebp
\n\t
"
)
"ret"
)
#else
#warning call_server_func not implemented for your architecture
LONG_PTR
__cdecl
call_server_func
(
SERVER_ROUTINE
func
,
unsigned
char
*
args
,
unsigned
short
stack_size
)
...
...
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