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
7592b406
Commit
7592b406
authored
Aug 21, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add .seh annotations for x86_64.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b82fa19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
cproxy.c
dlls/rpcrt4/cproxy.c
+9
-7
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+10
-3
No files found.
dlls/rpcrt4/cproxy.c
View file @
7592b406
...
...
@@ -104,19 +104,21 @@ static inline void init_thunk( struct thunk *thunk, unsigned int index )
extern
void
call_stubless_func
(
void
);
__ASM_GLOBAL_FUNC
(
call_stubless_func
,
"movq %rcx,0x8(%rsp)
\n\t
"
"movq %rdx,0x10(%rsp)
\n\t
"
"movq %r8,0x18(%rsp)
\n\t
"
"movq %r9,0x20(%rsp)
\n\t
"
"leaq 0x8(%rsp),%r8
\n\t
"
/* &This */
"subq $0x38,%rsp
\n\t
"
__ASM_SEH
(
".seh_stackalloc 0x38
\n\t
"
)
__ASM_SEH
(
".seh_endprologue
\n\t
"
)
__ASM_CFI
(
".cfi_adjust_cfa_offset 0x38
\n\t
"
)
"movq %rcx,0x40(%rsp)
\n\t
"
"movq %rdx,0x48(%rsp)
\n\t
"
"movq %r8,0x50(%rsp)
\n\t
"
"movq %r9,0x58(%rsp)
\n\t
"
"leaq 0x40(%rsp),%r8
\n\t
"
/* &This */
"movq (%rcx),%rcx
\n\t
"
/* This->lpVtbl */
"movq -0x10(%rcx),%rcx
\n\t
"
/* MIDL_STUBLESS_PROXY_INFO */
"movq 0x10(%rcx),%rdx
\n\t
"
/* info->FormatStringOffset */
"movzwq (%rdx,%r10,2),%rdx
\n\t
"
/* FormatStringOffset[index] */
"addq 8(%rcx),%rdx
\n\t
"
/* info->ProcFormatString + offset */
"movq (%rcx),%rcx
\n\t
"
/* info->pStubDesc */
"subq $0x38,%rsp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 0x38
\n\t
"
)
"movq %xmm1,0x20(%rsp)
\n\t
"
"movq %xmm2,0x28(%rsp)
\n\t
"
"movq %xmm3,0x30(%rsp)
\n\t
"
...
...
dlls/rpcrt4/ndr_stubless.c
View file @
7592b406
...
...
@@ -1092,13 +1092,18 @@ __ASM_GLOBAL_FUNC(call_server_func,
LONG_PTR
__cdecl
call_server_func
(
SERVER_ROUTINE
func
,
unsigned
char
*
args
,
unsigned
int
stack_size
);
__ASM_GLOBAL_FUNC
(
call_server_func
,
"pushq %rbp
\n\t
"
__ASM_SEH
(
".seh_pushreg %rbp
\n\t
"
)
__ASM_CFI
(
".cfi_adjust_cfa_offset 8
\n\t
"
)
__ASM_CFI
(
".cfi_rel_offset %rbp,0
\n\t
"
)
"movq %rsp,%rbp
\n\t
"
__ASM_SEH
(
".seh_setframe %rbp,0
\n\t
"
)
__ASM_CFI
(
".cfi_def_cfa_register %rbp
\n\t
"
)
"pushq %rsi
\n\t
"
__ASM_SEH
(
".seh_pushreg %rsi
\n\t
"
)
__ASM_CFI
(
".cfi_rel_offset %rsi,-8
\n\t
"
)
"pushq %rdi
\n\t
"
__ASM_SEH
(
".seh_pushreg %rdi
\n\t
"
)
__ASM_SEH
(
".seh_endprologue
\n\t
"
)
__ASM_CFI
(
".cfi_rel_offset %rdi,-16
\n\t
"
)
"movq %rcx,%rax
\n\t
"
/* function to call */
"movq $32,%rcx
\n\t
"
/* allocate max(32,stack_size) bytes of stack space */
...
...
@@ -1854,11 +1859,13 @@ cleanup:
#ifdef __x86_64__
__ASM_GLOBAL_FUNC
(
NdrAsyncClientCall
,
"movq %r8,0x18(%rsp)
\n\t
"
"movq %r9,0x20(%rsp)
\n\t
"
"leaq 0x18(%rsp),%r8
\n\t
"
"subq $0x28,%rsp
\n\t
"
__ASM_SEH
(
".seh_stackalloc 0x28
\n\t
"
)
__ASM_SEH
(
".seh_endprologue
\n\t
"
)
__ASM_CFI
(
".cfi_adjust_cfa_offset 0x28
\n\t
"
)
"movq %r8,0x40(%rsp)
\n\t
"
"movq %r9,0x48(%rsp)
\n\t
"
"leaq 0x40(%rsp),%r8
\n\t
"
"call "
__ASM_NAME
(
"ndr_async_client_call"
)
"
\n\t
"
"addq $0x28,%rsp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset -0x28
\n\t
"
)
...
...
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