From dfcf07b8251942f5ae77f01f197e76ef24b08ea9 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 7 Nov 2023 01:02:12 +0200 Subject: [PATCH] [NTOS:KE/x64] Remove GCC vs ML hack --- sdk/include/asm/trapamd64.inc | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/sdk/include/asm/trapamd64.inc b/sdk/include/asm/trapamd64.inc index d5d51dc50a6..49fce4bb376 100644 --- a/sdk/include/asm/trapamd64.inc +++ b/sdk/include/asm/trapamd64.inc @@ -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)