Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygengenincdata.c
Go to the documentation of this file.
00001 #undef __MSVCRT__ 00002 #include <psdk/ntverp.h> 00003 00004 /* DDK/IFS/NDK Headers */ 00005 #include <excpt.h> 00006 #include <setjmp.h> 00007 #include <ntdef.h> 00008 #include <ntifs.h> 00009 #include <arc/arc.h> 00010 #include <ntndk.h> 00011 #include <bugcodes.h> 00012 00013 /* KD Support */ 00014 #define NOEXTAPI 00015 #include <windbgkd.h> 00016 #include <wdbgexts.h> 00017 #include <kddll.h> 00018 00019 #ifdef _M_AMD64 00020 enum 00021 { 00022 P1Home = 1 * sizeof(PVOID), 00023 P2Home = 2 * sizeof(PVOID), 00024 P3Home = 3 * sizeof(PVOID), 00025 P4Home = 4 * sizeof(PVOID), 00026 }; 00027 #endif 00028 00029 // FIXME: where to put this? 00030 typedef struct _FIBER /* Field offsets: */ 00031 { /* 32 bit 64 bit */ 00032 /* this must be the first field */ 00033 PVOID Parameter; /* 0x00 0x00 */ 00034 struct _EXCEPTION_REGISTRATION_RECORD * ExceptionList; /* 0x04 0x08 */ 00035 PVOID StackBase; /* 0x08 0x10 */ 00036 PVOID StackLimit; /* 0x0C 0x18 */ 00037 PVOID DeallocationStack; /* 0x10 0x20 */ 00038 CONTEXT Context; /* 0x14 0x28 */ 00039 ULONG GuaranteedStackBytes; /* 0x2E0 */ 00040 PVOID FlsData; /* 0x2E4 */ 00041 PVOID ActivationContextStack; /* 0x2E8 */ 00042 } FIBER, *PFIBER; 00043 00044 typedef struct 00045 { 00046 char Type; 00047 char Name[55]; 00048 ULONGLONG Value; 00049 } ASMGENDATA; 00050 00051 #define TYPE_END 0 00052 #define TYPE_RAW 1 00053 #define TYPE_CONSTANT 2 00054 #define TYPE_HEADER 3 00055 00056 #define RAW(x) {TYPE_RAW, x, 0} 00057 #define CONSTANT(name) {TYPE_CONSTANT, #name, (ULONG)name} 00058 #define CONSTANT64(name) {TYPE_CONSTANT, #name, (ULONGLONG)name} 00059 #define CONSTANTPTR(name) {TYPE_CONSTANT, #name, (ULONG_PTR)name} 00060 #define CONSTANTX(name, value) {TYPE_CONSTANT, #name, value} 00061 #define OFFSET(name, struct, member) {TYPE_CONSTANT, #name, FIELD_OFFSET(struct, member)} 00062 #define RELOFFSET(name, struct, member, to) {TYPE_CONSTANT, #name, FIELD_OFFSET(struct, member) - FIELD_OFFSET(struct, to)} 00063 #define SIZE(name, struct) {TYPE_CONSTANT, #name, sizeof(struct)} 00064 #define HEADER(x) {TYPE_HEADER, x, 0} 00065 00066 #if defined(_MSC_VER) 00067 #pragma section(".asmdef") 00068 __declspec(allocate(".asmdef")) 00069 #elif defined(__GNUC__) 00070 __attribute__ ((section(".asmdef"))) 00071 #else 00072 #error Your compiler is not supported. 00073 #endif 00074 00075 ASMGENDATA Table[] = 00076 { 00077 00078 /* PORTABLE CONSTANTS ********************************************************/ 00079 #include "ksx.template.h" 00080 00081 /* ARCHITECTURE SPECIFIC CONTSTANTS ******************************************/ 00082 #ifdef _M_IX86 00083 #include "ks386.template.h" 00084 #elif defined(_M_AMD64) 00085 #include "ksamd64.template.h" 00086 #endif 00087 00088 /* End of list */ 00089 {TYPE_END, "", 0} 00090 }; 00091 Generated on Sat May 26 2012 04:27:25 for ReactOS by
1.7.6.1
|