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
ac6244b5
Commit
ac6244b5
authored
Jul 20, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Call NtRaiseException directly from RtlRaiseException on x86-64.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b3a6debd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+7
-13
No files found.
dlls/ntdll/signal_x86_64.c
View file @
ac6244b5
...
...
@@ -4041,14 +4041,6 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL
/***********************************************************************
* RtlRaiseException (NTDLL.@)
*/
void
WINAPI
__regs_RtlRaiseException
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
)
{
NTSTATUS
status
;
rec
->
ExceptionAddress
=
(
void
*
)
context
->
Rip
;
status
=
raise_exception
(
rec
,
context
,
TRUE
);
if
(
status
!=
STATUS_SUCCESS
)
raise_status
(
status
,
rec
);
}
__ASM_GLOBAL_FUNC
(
RtlRaiseException
,
"movq %rcx,8(%rsp)
\n\t
"
"sub $0x4f8,%rsp
\n\t
"
...
...
@@ -4056,15 +4048,17 @@ __ASM_GLOBAL_FUNC( RtlRaiseException,
"leaq 0x20(%rsp),%rcx
\n\t
"
"call "
__ASM_NAME
(
"RtlCaptureContext"
)
"
\n\t
"
"leaq 0x20(%rsp),%rdx
\n\t
"
/* context pointer */
"movq 0x4f8(%rsp),%rax
\n\t
"
/* return address */
"movq %rax,0xf8(%rdx)
\n\t
"
/* context->Rip */
"leaq 0x500(%rsp),%rax
\n\t
"
/* orig stack pointer */
"movq %rax,0x98(%rdx)
\n\t
"
/* context->Rsp */
"movq (%rax),%rcx
\n\t
"
/* original first parameter */
"movq %rcx,0x80(%rdx)
\n\t
"
/* context->Rcx */
"call "
__ASM_NAME
(
"__regs_RtlRaiseException"
)
"
\n\t
"
"leaq 0x20(%rsp),%rdi
\n\t
"
/* context pointer */
"call "
__ASM_NAME
(
"set_full_cpu_context"
)
/* does not return */
);
"movq 0x4f8(%rsp),%rax
\n\t
"
/* return address */
"movq %rax,0xf8(%rdx)
\n\t
"
/* context->Rip */
"movq %rax,0x10(%rcx)
\n\t
"
/* rec->ExceptionAddress */
"movl $1,%r8d
\n\t
"
"call "
__ASM_NAME
(
"NtRaiseException"
)
"
\n\t
"
"movq %rax,%rcx
\n\t
"
"call "
__ASM_NAME
(
"RtlRaiseStatus"
)
/* does not return */
);
/*************************************************************************
...
...
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