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
411cdeba
Commit
411cdeba
authored
Jun 19, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jun 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Add emulation for 'mov Ob, AL' and 'mov Ovqp, rAX' instruction.
parent
0b06d4c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
instr.c
dlls/ntoskrnl.exe/instr.c
+17
-0
No files found.
dlls/ntoskrnl.exe/instr.c
View file @
411cdeba
...
...
@@ -695,6 +695,23 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
}
break
;
/* Unable to emulate it */
}
case
0xa0
:
/* mov Ob, AL */
case
0xa1
:
/* mov Ovqp, rAX */
{
BYTE
*
data
=
(
BYTE
*
)(
long_addr
?
*
(
DWORD64
*
)(
instr
+
1
)
:
*
(
DWORD
*
)(
instr
+
1
));
unsigned
int
data_size
=
(
*
instr
==
0xa1
)
?
get_op_size
(
long_op
,
rex
)
:
1
;
unsigned
int
offset
=
data
-
user_shared_data
;
len
=
long_addr
?
sizeof
(
DWORD64
)
:
sizeof
(
DWORD
);
if
(
offset
<=
sizeof
(
KSHARED_USER_DATA
)
-
data_size
)
{
memcpy
(
&
context
->
Rax
,
wine_user_shared_data
+
offset
,
data_size
);
context
->
Rip
+=
prefixlen
+
len
+
1
;
return
ExceptionContinueExecution
;
}
break
;
/* Unable to emulate it */
}
}
return
ExceptionContinueSearch
;
/* Unable to emulate it */
}
...
...
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