mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +00:00
- Don't bother with clearing the DRs in the CONTEXT, just clear DR7 in the trap frame after the conversion.
svn path=/trunk/; revision=20901
This commit is contained in:
parent
1a6b709e32
commit
ee329f30db
1 changed files with 1 additions and 6 deletions
|
@ -149,12 +149,6 @@ Ke386InitThreadWithContext(PKTHREAD Thread,
|
|||
|
||||
/* 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 @@ Ke386InitThreadWithContext(PKTHREAD Thread,
|
|||
TrapFrame->HardwareSegSs |= RPL_MASK;
|
||||
TrapFrame->SegDs |= RPL_MASK;
|
||||
TrapFrame->SegEs |= RPL_MASK;
|
||||
TrapFrame->Dr7 = 0;
|
||||
|
||||
/* Set the debug mark */
|
||||
TrapFrame->DbgArgMark = 0xBADB0D00;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue