2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Kernel
4 * FILE: ntoskrnl/include/ntoskrnl.h
5 * PURPOSE: Main Kernel Header
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
9 /* INCLUDES ******************************************************************/
11 /* ARM Bringup Hack */
13 #define DbgPrint DbgPrintEarly
18 #define IoAllocateAdapterChannel _IoAllocateAdapterChannel
19 #define KeGetCurrentThread _KeGetCurrentThread
20 #define RtlFillMemoryUlong _RtlFillMemoryUlong
25 #include <psdk/ntverp.h>
27 /* DDK/IFS/NDK Headers */
28 #define _REALLY_GET_CALLERS_CALLER
35 #define NTHALAPI __declspec(dllimport)
37 #include <ndk/cctypes.h>
38 #include <ndk/cmfuncs.h>
39 #include <ndk/dbgkfuncs.h>
40 #include <ndk/exfuncs.h>
41 #include <ndk/halfuncs.h>
42 #include <ndk/inbvfuncs.h>
43 #include <ndk/iofuncs.h>
44 #include <ndk/kdfuncs.h>
45 #include <ndk/kefuncs.h>
46 #include <ndk/ldrfuncs.h>
47 #include <ndk/lpcfuncs.h>
48 #include <ndk/mmfuncs.h>
49 #include <ndk/obfuncs.h>
50 #include <ndk/pofuncs.h>
51 #include <ndk/psfuncs.h>
52 #include <ndk/rtlfuncs.h>
53 #include <ndk/sefuncs.h>
54 #include <ndk/vftypes.h>
58 #include <ntstrsafe.h>
68 /* SEH support with PSEH */
69 #include <pseh/pseh2.h>
72 #include <reactos/bugcodes.h>
74 /* SetupLDR Support */
75 #include <arc/setupblk.h>
83 #include <reactos/rossym.h>
87 #include <umpnpmgr/sysguid.h>
89 /* Internal Headers */
90 #include "internal/ntoskrnl.h"
93 #include <reactos/probe.h>
94 #include "internal/probe.h"
98 // Define the internal versions of external and public global data
100 #define IoFileObjectType _IoFileObjectType
101 #define PsThreadType _PsThreadType
102 #define PsProcessType _PsProcessType
103 #define ExEventObjectType _ExEventObjectType
104 #define ExSemaphoreObjectType _ExSemaphoreObjectType
105 #define KdDebuggerEnabled _KdDebuggerEnabled
106 #define KdDebuggerNotPresent _KdDebuggerNotPresent
107 #define NlsOemLeadByteInfo _NlsOemLeadByteInfo
108 extern PUSHORT _NlsOemLeadByteInfo
;
109 #define FsRtlLegalAnsiCharacterArray _FsRtlLegalAnsiCharacterArray
110 #undef LEGAL_ANSI_CHARACTER_ARRAY
111 #undef NLS_MB_CODE_PAGE_TAG
112 #undef NLS_OEM_LEAD_BYTE_INFO
113 #define LEGAL_ANSI_CHARACTER_ARRAY FsRtlLegalAnsiCharacterArray
114 #define NLS_MB_CODE_PAGE_TAG NlsMbOemCodePageTag
115 #define NLS_OEM_LEAD_BYTE_INFO _NlsOemLeadByteInfo
116 #undef KD_DEBUGGER_ENABLED
117 #undef KD_DEBUGGER_NOT_PRESENT
118 #define KD_DEBUGGER_ENABLED KdDebuggerEnabled
119 #define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
120 #define HalDispatchTable _HalDispatchTable
122 #define HALDISPATCH (&HalDispatchTable)
123 #define ExRaiseStatus RtlRaiseStatus