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
672a0845
Commit
672a0845
authored
Jan 27, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlRaiseException for x86_64 directly instead of using the…
ntdll: Implement RtlRaiseException for x86_64 directly instead of using the winebuild-generated code.
parent
1e6ff42d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+16
-1
No files found.
dlls/ntdll/signal_x86_64.c
View file @
672a0845
...
...
@@ -3098,7 +3098,22 @@ void WINAPI __regs_RtlRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context )
status
=
raise_exception
(
rec
,
context
,
TRUE
);
if
(
status
!=
STATUS_SUCCESS
)
raise_status
(
status
,
rec
);
}
DEFINE_REGS_ENTRYPOINT
(
RtlRaiseException
,
1
)
__ASM_GLOBAL_FUNC
(
RtlRaiseException
,
"movq %rcx,8(%rsp)
\n\t
"
"sub $0x4f8,%rsp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 0x4f8
\n\t
"
)
"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_cpu_context"
)
/* 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