[ros-dev] ntoskrnl/ex/i386/interlck_asm.S fails to compile duetoEFLAG_SELECT

Ge van Geldorp gvg at reactos.org
Mon Jan 2 17:42:49 CET 2006

> From: Alex Ionescu
> Doing this change would break compiling with the MS PSDK. Suggestions?

The patch below (no change needed to w32api/include/ddk/winddk.h anymore)
works OK on both "old" and "new" GNU toolchain. I assume it works with the
MS PSDK too, but haven't tested that.


Index: include/ndk/asm.h
--- include/ndk/asm.h   (revision 20528)
+++ include/ndk/asm.h   (working copy)
@@ -291,7 +291,9 @@
 #define EFLAGS_VIP                              0x100000
 #define EFLAG_SIGN                              0x8000
 #define EFLAG_ZERO                              0x4000
-#define EFLAG_SELECT                            (EFLAG_SIGN | EFLAG_ZERO)
+#define EFLAG_SELECT                            (EFLAG_SIGN + EFLAG_ZERO)

 // CR0

More information about the Ros-dev mailing list