[ros-dev] ntoskrnl/ex/i386/interlck_asm.S fails to compile
duetoEFLAG_SELECT
Alex Buell
alex.buell at munted.org.uk
Mon Jan 2 18:16:43 CET 2006
On Mon, 2 Jan 2006 17:42:49 +0100 "Ge van Geldorp" <gvg at reactos.org>
waved a wand and this message magically appeared:
> 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.
>
> GvG
>
> 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)
> +#ifndef EFLAG_SELECT
> +#define EFLAG_SELECT (EFLAG_SIGN + EFLAG_ZERO)
> +#endif
This works; but you also need to put a #ifndef guard around EFLAG_ZERO
as well.
--
http://www.munted.org.uk
Anyone that thinks an imaginary deity is going to protect them against
earthquakes and hurricanes needs psychiatric help.
More information about the Ros-dev
mailing list