https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d74df8af741590bd33375a6d128d090b91db323f

commit d74df8af741590bd33375a6d128d090b91db323f
Author:     Hervé Poussineau <[email protected]>
AuthorDate: Fri Jan 29 08:34:56 2021 +0100
Commit:     Hervé Poussineau <[email protected]>
CommitDate: Fri Jan 29 08:36:04 2021 +0100

    [SDK x64] Fix MSVC x64 compilation after 
5d7dd4a3b5cd7927f110925f30ced6171249762f
---
 sdk/include/asm/trapamd64.inc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sdk/include/asm/trapamd64.inc b/sdk/include/asm/trapamd64.inc
index 6cf846907ab..d3772689938 100644
--- a/sdk/include/asm/trapamd64.inc
+++ b/sdk/include/asm/trapamd64.inc
@@ -156,9 +156,17 @@ MACRO(ExitTrap, Flags)
         /* 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
 #endif
 
     if (Flags AND TF_SEGMENTS)

Reply via email to