Skip to content

Commit

Permalink
[NTOS:KE/x64] Remove GCC vs ML hack
Browse files Browse the repository at this point in the history
  • Loading branch information
tkreuzer committed Nov 7, 2023
1 parent adeaba1 commit dfcf07b
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions sdk/include/asm/trapamd64.inc
Original file line number Diff line number Diff line change
Expand Up @@ -166,22 +166,15 @@ MACRO(ExitTrap, Flags)
LOCAL IntsEnabled
LOCAL NoUserApc
LOCAL IrqlPassive
LOCAL irql_ok

#if DBG
/* Check previous irql */
mov rax, cr8
cmp [rbp + KTRAP_FRAME_PreviousIrql], al
#ifdef _USE_ML
je .irql_ok
#else
je 1f
#endif
int 3
#ifdef _USE_ML
.irql_ok:
#else
1:
#endif
je irql_ok
int HEX(2c)
irql_ok:
#endif

if (Flags AND TF_SEGMENTS)
Expand Down

0 comments on commit dfcf07b

Please sign in to comment.