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
4e76f91f
Commit
4e76f91f
authored
Nov 03, 2005
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Nov 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of CPU id when copying context
parent
74c6321a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
thread.c
dlls/ntdll/thread.c
+4
-0
No files found.
dlls/ntdll/thread.c
View file @
4e76f91f
...
@@ -528,6 +528,7 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
...
@@ -528,6 +528,7 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
static
inline
void
copy_context
(
CONTEXT
*
to
,
const
CONTEXT
*
from
,
DWORD
flags
)
static
inline
void
copy_context
(
CONTEXT
*
to
,
const
CONTEXT
*
from
,
DWORD
flags
)
{
{
#ifdef __i386__
#ifdef __i386__
flags
&=
~
CONTEXT_i386
;
/* get rid of CPU id */
if
(
flags
&
CONTEXT_INTEGER
)
if
(
flags
&
CONTEXT_INTEGER
)
{
{
to
->
Eax
=
from
->
Eax
;
to
->
Eax
=
from
->
Eax
;
...
@@ -567,6 +568,7 @@ static inline void copy_context( CONTEXT *to, const CONTEXT *from, DWORD flags )
...
@@ -567,6 +568,7 @@ static inline void copy_context( CONTEXT *to, const CONTEXT *from, DWORD flags )
to
->
FloatSave
=
from
->
FloatSave
;
to
->
FloatSave
=
from
->
FloatSave
;
}
}
#elif defined(__x86_64__)
#elif defined(__x86_64__)
flags
&=
~
CONTEXT_AMD64
;
/* get rid of CPU id */
if
(
flags
&
CONTEXT_CONTROL
)
if
(
flags
&
CONTEXT_CONTROL
)
{
{
to
->
Rbp
=
from
->
Rbp
;
to
->
Rbp
=
from
->
Rbp
;
...
@@ -615,6 +617,7 @@ static inline void copy_context( CONTEXT *to, const CONTEXT *from, DWORD flags )
...
@@ -615,6 +617,7 @@ static inline void copy_context( CONTEXT *to, const CONTEXT *from, DWORD flags )
to
->
Dr7
=
from
->
Dr7
;
to
->
Dr7
=
from
->
Dr7
;
}
}
#elif defined(__sparc__)
#elif defined(__sparc__)
flags
&=
~
CONTEXT_SPARC
;
/* get rid of CPU id */
if
(
flags
&
CONTEXT_CONTROL
)
if
(
flags
&
CONTEXT_CONTROL
)
{
{
to
->
psr
=
from
->
psr
;
to
->
psr
=
from
->
psr
;
...
@@ -664,6 +667,7 @@ static inline void copy_context( CONTEXT *to, const CONTEXT *from, DWORD flags )
...
@@ -664,6 +667,7 @@ static inline void copy_context( CONTEXT *to, const CONTEXT *from, DWORD flags )
/* FIXME */
/* FIXME */
}
}
#elif defined(__powerpc__)
#elif defined(__powerpc__)
/* Has no CPU id */
if
(
flags
&
CONTEXT_CONTROL
)
if
(
flags
&
CONTEXT_CONTROL
)
{
{
to
->
Msr
=
from
->
Msr
;
to
->
Msr
=
from
->
Msr
;
...
...
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