Vitaliy Margolen : kernel: Remove calls to Nt[Get|Set]ThreadContext.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jan 19 05:46:35 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 8430d43d6c6391066e3a640a56571852d6906ab6
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8430d43d6c6391066e3a640a56571852d6906ab6
Author: Vitaliy Margolen <wine-patch at kievinfo.com>
Date: Thu Jan 19 11:55:24 2006 +0100
kernel: Remove calls to Nt[Get|Set]ThreadContext.
It's done in exception handler now.
---
dlls/kernel/instr.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/dlls/kernel/instr.c b/dlls/kernel/instr.c
index b34e08e..6a9126f 100644
--- a/dlls/kernel/instr.c
+++ b/dlls/kernel/instr.c
@@ -568,8 +568,6 @@ DWORD INSTR_EmulateInstruction( EXCEPTIO
switch (instr[2])
{
case 0xc8: /* mov dr1, eax */
- context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
- NtGetContextThread( GetCurrentThread(), context );
TRACE("mov dr1,eax at 0x%08lx\n",context->Eip);
context->Eax = context->Dr1;
context->Eip += prefixlen+3;
@@ -587,12 +585,8 @@ DWORD INSTR_EmulateInstruction( EXCEPTIO
switch (instr[2])
{
case 0xc8: /* mov eax, dr1 */
- context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
- NtGetContextThread( GetCurrentThread(), context );
context->Dr1 = context->Eax;
context->Eip += prefixlen+3;
- context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
- NtSetContextThread( GetCurrentThread(), context );
return ExceptionContinueExecution;
}
ERR("Unsupported DR register, eip+2 is %02x\n", instr[2]);
More information about the wine-cvs
mailing list