[CONSRV]
[reactos.git] / include / asm / genincdata.c
index 22a4605..2f55a40 100644 (file)
@@ -3,6 +3,7 @@
 
 /* DDK/IFS/NDK Headers */
 #include <excpt.h>
+#include <setjmp.h>
 #include <ntdef.h>
 #include <ntifs.h>
 #include <arc/arc.h>
 #include <wdbgexts.h>
 #include <kddll.h>
 
+#ifdef _M_AMD64
+enum
+{
+    P1Home = 1 * sizeof(PVOID),
+    P2Home = 2 * sizeof(PVOID),
+    P3Home = 3 * sizeof(PVOID),
+    P4Home = 4 * sizeof(PVOID),
+};
+#endif
+
+// FIXME: where to put this?
+typedef struct _FIBER                                      /* Field offsets:  */
+{                                                          /* 32 bit   64 bit */
+    /* this must be the first field */
+    PVOID Parameter;                                       /*   0x00     0x00 */
+    struct _EXCEPTION_REGISTRATION_RECORD * ExceptionList; /*   0x04     0x08 */
+    PVOID StackBase;                                       /*   0x08     0x10 */
+    PVOID StackLimit;                                      /*   0x0C     0x18 */
+    PVOID DeallocationStack;                               /*   0x10     0x20 */
+    CONTEXT Context;                                       /*   0x14     0x28 */
+    ULONG GuaranteedStackBytes;                            /*   0x2E0         */
+    PVOID FlsData;                                         /*   0x2E4         */
+    PVOID ActivationContextStack;                          /*   0x2E8         */
+} FIBER, *PFIBER;
+
 typedef struct
 {
     char Type;
@@ -45,6 +71,7 @@ __attribute__ ((section(".asmdef")))
 #else
 #error Your compiler is not supported.
 #endif
+
 ASMGENDATA Table[] =
 {
 
@@ -62,7 +89,3 @@ ASMGENDATA Table[] =
     {TYPE_END, "", 0}
 };
 
-LONG NTAPI DummyEntry(HANDLE hinstDLL, ULONG fdwReason, PVOID lpvReserved)
-{
-    return 0;
-}