[GENINCDATA]
[reactos.git] / include / asm / genincdata.c
1 #undef __MSVCRT__
2 #include <psdk/ntverp.h>
3
4 /* DDK/IFS/NDK Headers */
5 #include <excpt.h>
6 #include <ntdef.h>
7 #include <ntifs.h>
8 #include <arc/arc.h>
9 #include <ntndk.h>
10 #include <bugcodes.h>
11
12 /* KD Support */
13 #define NOEXTAPI
14 #include <windbgkd.h>
15 #include <wdbgexts.h>
16 #include <kddll.h>
17
18 typedef struct
19 {
20 char Type;
21 char Name[55];
22 ULONGLONG Value;
23 } ASMGENDATA;
24
25 #define TYPE_END 0
26 #define TYPE_RAW 1
27 #define TYPE_CONSTANT 2
28 #define TYPE_HEADER 3
29
30 #define RAW(x) {TYPE_RAW, x, 0}
31 #define CONSTANT(name) {TYPE_CONSTANT, #name, (ULONG)name}
32 #define CONSTANT64(name) {TYPE_CONSTANT, #name, (ULONGLONG)name}
33 #define CONSTANTPTR(name) {TYPE_CONSTANT, #name, (ULONG_PTR)name}
34 #define CONSTANTX(name, value) {TYPE_CONSTANT, #name, value}
35 #define OFFSET(name, struct, member) {TYPE_CONSTANT, #name, FIELD_OFFSET(struct, member)}
36 #define RELOFFSET(name, struct, member, to) {TYPE_CONSTANT, #name, FIELD_OFFSET(struct, member) - FIELD_OFFSET(struct, to)}
37 #define SIZE(name, struct) {TYPE_CONSTANT, #name, sizeof(struct)}
38 #define HEADER(x) {TYPE_HEADER, x, 0}
39
40 #if defined(_MSC_VER)
41 #pragma section(".asmdef")
42 __declspec(allocate(".asmdef"))
43 #elif defined(__GNUC__)
44 __attribute__ ((section(".asmdef")))
45 #else
46 #error Your compiler is not supported.
47 #endif
48 ASMGENDATA Table[] =
49 {
50
51 /* PORTABLE CONSTANTS ********************************************************/
52 #include "ksx.template.h"
53
54 /* ARCHITECTURE SPECIFIC CONTSTANTS ******************************************/
55 #ifdef _M_IX86
56 #include "ks386.template.h"
57 #elif defined(_M_AMD64)
58 #include "ksamd64.template.h"
59 #endif
60
61 /* End of list */
62 {TYPE_END, "", 0}
63 };
64
65 LONG NTAPI DummyEntry(HANDLE hinstDLL, ULONG fdwReason, PVOID lpvReserved)
66 {
67 return 0;
68 }