Author: hbelusca Date: Sun May 15 22:40:34 2016 New Revision: 71339
URL: http://svn.reactos.org/svn/reactos?rev=71339&view=rev Log: [NTOS][NDK][RTL]: Move the SEM_xxx flags and their corresponding RTL flags around so that they can be accessed in kernel code. I'll need them soon.
Modified: trunk/reactos/ntoskrnl/ps/query.c trunk/reactos/sdk/include/ndk/rtltypes.h trunk/reactos/sdk/lib/rtl/error.c
Modified: trunk/reactos/ntoskrnl/ps/query.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/query.c?rev=713... ============================================================================== --- trunk/reactos/ntoskrnl/ps/query.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ps/query.c [iso-8859-1] Sun May 15 22:40:34 2016 @@ -13,9 +13,6 @@ #include <ntoskrnl.h> #define NDEBUG #include <debug.h> - -/* FIXME: From winbase.h... what to do? */ -#define SEM_NOALIGNMENTFAULTEXCEPT 0x04
/* Debugging Level */ ULONG PspTraceLevel = 0;
Modified: trunk/reactos/sdk/include/ndk/rtltypes.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/ndk/rtltypes.h?... ============================================================================== --- trunk/reactos/sdk/include/ndk/rtltypes.h [iso-8859-1] (original) +++ trunk/reactos/sdk/include/ndk/rtltypes.h [iso-8859-1] Sun May 15 22:40:34 2016 @@ -61,6 +61,19 @@ // End of Exception List // #define EXCEPTION_CHAIN_END ((PEXCEPTION_REGISTRATION_RECORD)-1) + +// +// Thread Error Mode Flags +// +/* Also defined in psdk/winbase.h */ +#define SEM_FAILCRITICALERRORS 0x0001 +#define SEM_NOGPFAULTERRORBOX 0x0002 +#define SEM_NOALIGNMENTFAULTEXCEPT 0x0004 +#define SEM_NOOPENFILEERRORBOX 0x8000 + +#define RTL_SEM_FAILCRITICALERRORS (SEM_FAILCRITICALERRORS << 4) +#define RTL_SEM_NOGPFAULTERRORBOX (SEM_NOGPFAULTERRORBOX << 4) +#define RTL_SEM_NOALIGNMENTFAULTEXCEPT (SEM_NOALIGNMENTFAULTEXCEPT << 4)
// // Range and Range List Flags
Modified: trunk/reactos/sdk/lib/rtl/error.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/error.c?rev=713... ============================================================================== --- trunk/reactos/sdk/lib/rtl/error.c [iso-8859-1] (original) +++ trunk/reactos/sdk/lib/rtl/error.c [iso-8859-1] Sun May 15 22:40:34 2016 @@ -24,10 +24,6 @@
#define NDEBUG #include <debug.h> - -#define RTL_SEM_FAILCRITICALERRORS (SEM_FAILCRITICALERRORS << 4) -#define RTL_SEM_NOGPFAULTERRORBOX (SEM_NOGPFAULTERRORBOX << 4) -#define RTL_SEM_NOALIGNMENTFAULTEXCEPT (SEM_NOALIGNMENTFAULTEXCEPT << 4)
struct error_table {