started moving tags to a private internal header
[reactos.git] / reactos / ntoskrnl / include / ntoskrnl.h
index bc86183..3f2c8ef 100755 (executable)
@@ -3,6 +3,8 @@
 
 #define __NO_CTYPE_INLINES
 
+/* include the ntoskrnl config.h file */
+#include "config.h"
 
 #include <roscfg.h>
 #include <reactos/version.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
+#include <malloc.h>
 #include <wchar.h>
 #include <roskrnl.h>
 #include <ntos/minmax.h>
 #include <ntos/synch.h>
 #include <ntos/keyboard.h>
 #include <ntos/ntdef.h>
+#include <ntos/ntpnp.h>
 #include <rosrtl/minmax.h>
 #include <rosrtl/string.h>
 #include <ddk/halfuncs.h>
 #include <ddk/kefuncs.h>
 #include <ddk/pnptypes.h>
 #include <ddk/pnpfuncs.h>
+#include <ddk/wdmguid.h>
+#include <ntdll/ldr.h>
+#include <pseh.h>
 #include <internal/ctype.h>
 #include <internal/ntoskrnl.h>
-#include <internal/id.h>
 #include <internal/ke.h>
 #include <internal/i386/segment.h>
 #include <internal/i386/mm.h>
 #include <internal/kd.h>
 #include <internal/ex.h>
 #include <internal/ob.h>
-#include <internal/nt.h>
 #include "internal/xhal.h"
 #include <internal/v86m.h>
 #include <internal/ifs.h>
 #include <internal/port.h>
 #include <internal/nls.h>
-#include <internal/dbg.h>
+#ifdef KDBG
+#include <internal/kdb.h>
+#endif
+#include <internal/dbgk.h>
 #include <internal/trap.h>
 #include <internal/safe.h>
-#include <ntdll/ldr.h>
+#include <internal/tag.h>
+#include <internal/test.h>
 #include <napi/core.h>
 #include <napi/dbg.h>
 #include <napi/teb.h>
 #include <napi/win32.h>
 
+#ifndef RTL_CONSTANT_STRING
+#define RTL_CONSTANT_STRING(__SOURCE_STRING__) \
+{ \
+ sizeof(__SOURCE_STRING__) - sizeof((__SOURCE_STRING__)[0]), \
+ sizeof(__SOURCE_STRING__), \
+ (__SOURCE_STRING__) \
+}
+#endif
+
+#ifdef DBG
+#ifndef PAGED_CODE
+#define PAGED_CODE()                                                           \
+  do {                                                                         \
+    if(KeGetCurrentIrql() > APC_LEVEL) {                                       \
+      DbgPrint("%s:%i: Pagable code called at IRQL > APC_LEVEL (%d)\n",        \
+               __FILE__, __LINE__, KeGetCurrentIrql());                        \
+      KEBUGCHECK(0);                                                           \
+    }                                                                          \
+  } while(0)
+#endif
+#define PAGED_CODE_RTL PAGED_CODE
+#else
+#ifndef PAGED_CODE
+#define PAGED_CODE()
+#endif
+#define PAGED_CODE_RTL()
+#endif
+
 #endif /* INCLUDE_NTOSKRNL_H */