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
9bdd02de
Commit
9bdd02de
authored
Feb 15, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Store eflags in x86_64 syscall frame.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d2f08cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
signal_x86_64.c
dlls/ntdll/unix/signal_x86_64.c
+1
-1
import.c
tools/winebuild/import.c
+3
-1
No files found.
dlls/ntdll/unix/signal_x86_64.c
View file @
9bdd02de
...
...
@@ -1947,7 +1947,7 @@ NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context )
context
->
Rsp
=
(
ULONG64
)
&
frame
->
ret_addr
;
context
->
Rbp
=
frame
->
rbp
;
context
->
Rip
=
frame
->
thunk_addr
;
context
->
EFlags
=
0x202
;
context
->
EFlags
=
frame
->
eflags
;
__asm__
(
"movw %%cs,%0"
:
"=g"
(
context
->
SegCs
)
);
__asm__
(
"movw %%ss,%0"
:
"=g"
(
context
->
SegSs
)
);
context
->
ContextFlags
|=
CONTEXT_CONTROL
;
...
...
tools/winebuild/import.c
View file @
9bdd02de
...
...
@@ -1508,7 +1508,9 @@ void output_syscalls( DLLSPEC *spec )
output_cfi
(
".cfi_rel_offset %%rbp,0"
);
output
(
"
\t
movq %%rsp,%%rbp
\n
"
);
output_cfi
(
".cfi_def_cfa_register %%rbp"
);
output
(
"
\t
leaq -0x2a8(%%rbp),%%rsp
\n
"
);
output
(
"
\t
leaq -0x10(%%rbp),%%rsp
\n
"
);
output
(
"
\t
pushfq
\n
"
);
output
(
"
\t
subq $0x280,%%rsp
\n
"
);
output
(
"
\t
andq $~63,%%rsp
\n
"
);
output
(
"
\t
movq %%rbx,-0x90(%%rbp)
\n
"
);
output_cfi
(
".cfi_rel_offset %%rbx,-144"
);
...
...
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