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
f72940de
Commit
f72940de
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 segment registers in x86_64 syscall frame.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4e5b61bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
signal_x86_64.c
dlls/ntdll/unix/signal_x86_64.c
+6
-6
import.c
tools/winebuild/import.c
+6
-0
No files found.
dlls/ntdll/unix/signal_x86_64.c
View file @
f72940de
...
...
@@ -1945,16 +1945,16 @@ NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context )
context
->
Rbp
=
frame
->
rbp
;
context
->
Rip
=
frame
->
rip
;
context
->
EFlags
=
frame
->
eflags
;
__asm__
(
"movw %%cs,%0"
:
"=g"
(
context
->
SegCs
)
)
;
__asm__
(
"movw %%ss,%0"
:
"=g"
(
context
->
SegSs
)
)
;
context
->
SegCs
=
frame
->
cs
;
context
->
SegSs
=
frame
->
ss
;
context
->
ContextFlags
|=
CONTEXT_CONTROL
;
}
if
(
needed_flags
&
CONTEXT_SEGMENTS
)
{
__asm__
(
"movw %%ds,%0"
:
"=g"
(
context
->
SegDs
)
)
;
__asm__
(
"movw %%es,%0"
:
"=g"
(
context
->
SegEs
)
)
;
__asm__
(
"movw %%fs,%0"
:
"=g"
(
context
->
SegFs
)
)
;
__asm__
(
"movw %%gs,%0"
:
"=g"
(
context
->
SegGs
)
)
;
context
->
SegDs
=
frame
->
ds
;
context
->
SegEs
=
frame
->
es
;
context
->
SegFs
=
frame
->
fs
;
context
->
SegGs
=
frame
->
gs
;
context
->
ContextFlags
|=
CONTEXT_SEGMENTS
;
}
if
(
needed_flags
&
CONTEXT_FLOATING_POINT
)
...
...
tools/winebuild/import.c
View file @
f72940de
...
...
@@ -1529,6 +1529,12 @@ void output_syscalls( DLLSPEC *spec )
output
(
"
\t
movq %%rbx,-0x28(%%rbp)
\n
"
);
output
(
"
\t
leaq 0x10(%%rbp),%%rbx
\n
"
);
output
(
"
\t
movq %%rbx,-0x10(%%rbp)
\n
"
);
output
(
"
\t
movw %%cs,-0x20(%%rbp)
\n
"
);
output
(
"
\t
movw %%ds,-0x1e(%%rbp)
\n
"
);
output
(
"
\t
movw %%es,-0x1c(%%rbp)
\n
"
);
output
(
"
\t
movw %%fs,-0x1a(%%rbp)
\n
"
);
output
(
"
\t
movw %%ss,-0x8(%%rbp)
\n
"
);
output
(
"
\t
movw %%gs,-0x6(%%rbp)
\n
"
);
output
(
"
\t
fxsave64 (%%rsp)
\n
"
);
output
(
"
\t
movq %%gs:0x30,%%rcx
\n
"
);
output
(
"
\t
leaq -0x98(%%rbp),%%rbx
\n
"
);
...
...
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