projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Fix KiDispatchException to unmask KI_EXCEPTION_INTERNAL when setting the exception...
[reactos.git]
/
reactos
/
ntoskrnl
/
ke
/
i386
/
exp.c
diff --git
a/reactos/ntoskrnl/ke/i386/exp.c
b/reactos/ntoskrnl/ke/i386/exp.c
index
8a33723
..
500a1db
100644
(file)
--- a/
reactos/ntoskrnl/ke/i386/exp.c
+++ b/
reactos/ntoskrnl/ke/i386/exp.c
@@
-90,7
+90,7
@@
KiUpdateDr7(IN ULONG Dr7)
ULONG DebugMask = KeGetCurrentThread()->DispatcherHeader.DebugActive;
/* Check if debugging is enabled */
ULONG DebugMask = KeGetCurrentThread()->DispatcherHeader.DebugActive;
/* Check if debugging is enabled */
- if (DebugMask & DR_
ACTIVE_MASK
)
+ if (DebugMask & DR_
MASK(DR7_OVERRIDE_V)
)
{
/* Sanity checks */
ASSERT((DebugMask & DR_REG_MASK) != 0);
{
/* Sanity checks */
ASSERT((DebugMask & DR_REG_MASK) != 0);
@@
-133,11
+133,11
@@
KiRecordDr7(OUT PULONG Dr7Ptr,
Result = FALSE;
/* Check the DR mask */
Result = FALSE;
/* Check the DR mask */
- NewMask &=
0x7F
;
+ NewMask &=
~(DR_MASK(7))
;
if (NewMask & DR_REG_MASK)
{
/* Set the active mask */
if (NewMask & DR_REG_MASK)
{
/* Set the active mask */
- NewMask |= DR_
ACTIVE_MASK
;
+ NewMask |= DR_
MASK(DR7_OVERRIDE_V)
;
/* Set DR7 override */
*DrMask = DR7_OVERRIDE_MASK;
/* Set DR7 override */
*DrMask = DR7_OVERRIDE_MASK;
@@
-154,8
+154,8
@@
KiRecordDr7(OUT PULONG Dr7Ptr,
Result = NewMask ? TRUE: FALSE;
/* Update the mask to disable debugging */
Result = NewMask ? TRUE: FALSE;
/* Update the mask to disable debugging */
- NewMask &= ~
DR_ACTIVE_MASK
;
- NewMask |=
0x80
;
+ NewMask &= ~
(DR_MASK(DR7_OVERRIDE_V))
;
+ NewMask |=
DR_MASK(7)
;
}
/* Check if caller wants the new mask */
}
/* Check if caller wants the new mask */