- Don't bother with clearing the DRs in the CONTEXT, just clear DR7 in the trap frame after the conversion.
Modified: trunk/reactos/ntoskrnl/ke/i386/thread.c

Modified: trunk/reactos/ntoskrnl/ke/i386/thread.c
--- trunk/reactos/ntoskrnl/ke/i386/thread.c	2006-01-15 20:25:53 UTC (rev 20900)
+++ trunk/reactos/ntoskrnl/ke/i386/thread.c	2006-01-15 20:26:53 UTC (rev 20901)
@@ -149,12 +149,6 @@
 
         /* Disable any debug regiseters */
         Context->ContextFlags &= ~CONTEXT_DEBUG_REGISTERS;
-        Context->Dr0 = 0;
-        Context->Dr1 = 0;
-        Context->Dr2 = 0;
-        Context->Dr3 = 0;
-        Context->Dr6 = 0;
-        Context->Dr7 = 0;
 
         /* Setup the Trap Frame */
         TrapFrame = &InitFrame->TrapFrame;
@@ -170,6 +164,7 @@
         TrapFrame->HardwareSegSs |= RPL_MASK;
         TrapFrame->SegDs |= RPL_MASK;
         TrapFrame->SegEs |= RPL_MASK;
+        TrapFrame->Dr7 = 0;
 
         /* Set the debug mark */
         TrapFrame->DbgArgMark = 0xBADB0D00;