[ros-diffs] [ion] 19808: - Add some more misc. public definitions and fix exfuncs.h so that it can be included independently (thanks to hpoussin for noticing the bug).

ion at svn.reactos.com ion at svn.reactos.com
Thu Dec 1 22:23:16 CET 2005


- Add some more misc. public definitions and fix exfuncs.h so that it
can be included independently (thanks to hpoussin for noticing the bug).
Modified: trunk/reactos/include/ndk/asm.h
Modified: trunk/reactos/include/ndk/exfuncs.h
Modified: trunk/reactos/include/ndk/halfuncs.h
Modified: trunk/reactos/include/ndk/i386/ketypes.h
  _____  

Modified: trunk/reactos/include/ndk/asm.h
--- trunk/reactos/include/ndk/asm.h	2005-12-01 21:17:25 UTC (rev
19807)
+++ trunk/reactos/include/ndk/asm.h	2005-12-01 21:23:06 UTC (rev
19808)
@@ -33,6 +33,7 @@

 #define KGDT_R3_TEB                             (0x38)
 #define KGDT_LDT                                (0x48)
 #define KGDT_DF_TSS                             (0x50)
+#define KGDT_NMI_TSS                            (0x58)
 
 //
 // KV86M_REGISTERS Offsets
@@ -101,14 +102,31 @@
 #define KPCR_EXCEPTION_LIST                     0x0
 #define KPCR_INITIAL_STACK                      0x4
 #define KPCR_STACK_LIMIT                        0x8
+#define KPCR_SET_MEMBER_COPY                    0x14
 #define KPCR_TEB                                0x18
 #define KPCR_SELF                               0x1C
+#define KPCR_PRCB                               0x20
+#define KPCR_KD_VERSION_BLOCK                   0x34
 #define KPCR_GDT                                0x3C
 #define KPCR_TSS                                0x40
+#define KPCR_SET_MEMBER                         0x48
 #define KPCR_CURRENT_THREAD                     0x124
+#define KPCR_PROCESSOR_NUMBER                   0x130
+#define KPCR_PRCB_SET_MEMBER                    0x134
 #define KPCR_NPX_THREAD                         0x2F4
+#define KPCR_DR6                                0x428
+#define KPCR_DR7                                0x42C
 
 //
+// KGDTENTRY Offsets
+//
+#define KGDT_BASE_LOW                           0x2
+#define KGDT_BASE_MID                           0x4
+#define KGDT_BASE_HI                            0x7
+#define KGDT_LIMIT_HI                           0x6
+#define KGDT_LIMIT_LOW                          0x0
+
+//
 // FPU Save Area Offsets
 //
 #define FN_CONTROL_WORD                         0x0
@@ -117,6 +135,7 @@
 #define FN_DATA_SELECTOR                        0x18
 #define FN_CR0_NPX_STATE                        0x20C
 #define SIZEOF_FX_SAVE_AREA                     528
+#define NPX_FRAME_LENGTH                        0x210
 
 //
 // Trap Frame Offsets
@@ -166,6 +185,8 @@
 #define KTRAP_FRAME_V86_GS                      0x88
 #define KTRAP_FRAME_RESERVED9                   0x8A
 #define KTRAP_FRAME_SIZE                        0x8C
+#define KTRAP_FRAME_LENGTH                      0x8C
+#define KTRAP_FRAME_ALIGN                       0x04
 
 //
 // KUSER_SHARED_DATA Offsets
@@ -257,5 +278,35 @@
 #define FIBER_CONTEXT_FLOAT_SAVE_CONTROL_WORD   FIBER_CONTEXT +
CONTEXT_FLOAT_SAVE_CONTROL_WORD
 #define FIBER_CONTEXT_FLOAT_SAVE_TAG_WORD       FIBER_CONTEXT +
CONTEXT_FLOAT_SAVE_TAG_WORD
 
+//
+// EFLAGS
+//
+#define EFLAGS_TF                               0x100
+#define EFLAGS_INTERRUPT_MASK                   0x200
+#define EFLAGS_NESTED_TASK                      0x4000
+#define EFLAGS_V86_MASK                         0x20000
+#define EFLAGS_ALIGN_CHECK                      0x40000
+#define EFLAGS_VIF                              0x80000
+#define EFLAGS_VIP                              0x100000
+
+//
+// CR0
+//
+#define CR0_PE                                  0x1
+#define CR0_MP                                  0x2
+#define CR0_EM                                  0x4
+#define CR0_TS                                  0x8
+#define CR0_ET                                  0x10
+#define CR0_NE                                  0x20
+#define CR0_WP                                  0x10000
+#define CR0_AM                                  0x40000
+#define CR0_NW                                  0x20000000
+#define CR0_CD                                  0x40000000
+#define CR0_PG                                  0x80000000
+
+//
+// Generic Definitions
+//
+#define MAXIMUM_IDTVECTOR                       0xFF
 #endif // !_ASM_H
 
  _____  

Modified: trunk/reactos/include/ndk/exfuncs.h
--- trunk/reactos/include/ndk/exfuncs.h	2005-12-01 21:17:25 UTC (rev
19807)
+++ trunk/reactos/include/ndk/exfuncs.h	2005-12-01 21:23:06 UTC (rev
19808)
@@ -23,6 +23,8 @@

 // Dependencies
 //
 #include <umtypes.h>
+#include <pstypes.h>
+#include <extypes.h>
 
 //
 // Don't include WMI headers just for one define
  _____  

Modified: trunk/reactos/include/ndk/halfuncs.h
--- trunk/reactos/include/ndk/halfuncs.h	2005-12-01 21:17:25 UTC
(rev 19807)
+++ trunk/reactos/include/ndk/halfuncs.h	2005-12-01 21:23:06 UTC
(rev 19808)
@@ -73,7 +73,7 @@

 NTAPI
 HalInitializeProcessor(
     ULONG ProcessorNumber,
-    PVOID ProcessorStack
+    PLOADER_PARAMETER_BLOCK LoaderBlock
 );
 
 NTHALAPI
@@ -166,6 +166,13 @@
     ULONG Unknown
 );
 
+NTHALAPI
+VOID
+NTAPI
+HalHandleNMI(
+    ULONG Unknown
+);
+
 //
 // I/O Functions
 //
  _____  

Modified: trunk/reactos/include/ndk/i386/ketypes.h
--- trunk/reactos/include/ndk/i386/ketypes.h	2005-12-01 21:17:25 UTC
(rev 19807)
+++ trunk/reactos/include/ndk/i386/ketypes.h	2005-12-01 21:23:06 UTC
(rev 19808)
@@ -26,6 +26,7 @@

 //
 // X86 80386 Segment Types
 //
+#define I386_TASK_GATE          0x5
 #define I386_TSS                0x9
 #define I386_ACTIVE_TSS         0xB
 #define I386_CALL_GATE          0xC
@@ -439,8 +440,13 @@
     ULONG IrrActive;             /* 2C */
     ULONG IDR;                   /* 30 */
     PVOID KdVersionBlock;        /* 34 */
+#ifdef _REACTOS_
     PUSHORT IDT;                 /* 38 */
     PUSHORT GDT;                 /* 3C */
+#else
+    PKIDTENTRY IDT;              /* 38 */
+    PKGDTENTRY GDT;              /* 3C */
+#endif
     struct _KTSS *TSS;           /* 40 */
     USHORT MajorVersion;         /* 44 */
     USHORT MinorVersion;         /* 46 */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051201/cb6cdcd8/attachment.html


More information about the Ros-diffs mailing list