[SDK][NDK] Add two missing documented GDT selector names.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 13 Oct 2019 17:21:34 +0000 (19:21 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 13 Oct 2019 17:57:54 +0000 (19:57 +0200)
Add KGDT_NULL and KGDT_VDM_TILE to the list of known GDT name defines.
See https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/dg--display-selector-

sdk/include/asm/ks386.template.h
sdk/include/ndk/i386/asm.h
sdk/include/ndk/i386/ketypes.h

index ac94afd..4dafa9d 100644 (file)
@@ -61,19 +61,21 @@ CONSTANT(KF_FAST_SYSCALL),
 //CONSTANT(KF_XSTATE),
 
 HEADER("KDGT selectors"),
-CONSTANT(KGDT_R3_DATA),
-CONSTANT(KGDT_R3_CODE),
+CONSTANT(KGDT_NULL),
 CONSTANT(KGDT_R0_CODE),
 CONSTANT(KGDT_R0_DATA),
-CONSTANT(KGDT_R0_PCR),
-//CONSTANT(KGDT_STACK16),// obsolete
-//CONSTANT(KGDT_CODE16),// obsolete
+CONSTANT(KGDT_R3_CODE),
+CONSTANT(KGDT_R3_DATA),
 CONSTANT(KGDT_TSS),
+CONSTANT(KGDT_R0_PCR),
 CONSTANT(KGDT_R3_TEB),
-//CONSTANT(KGDT_R3_GS),
+CONSTANT(KGDT_VDM_TILE),
+CONSTANT(KGDT_LDT),
 CONSTANT(KGDT_DF_TSS),
 CONSTANT(KGDT_NMI_TSS),
-CONSTANT(KGDT_LDT),
+//CONSTANT(KGDT_R3_GS),
+//CONSTANT(KGDT_STACK16),// obsolete
+//CONSTANT(KGDT_CODE16), // obsolete
 
 HEADER("Machine type definitions"),
 CONSTANT(MACHINE_TYPE_ISA),
index 242cc74..428c397 100644 (file)
@@ -43,16 +43,18 @@ Author:
 #ifdef __ASM__
 #define RPL_MASK                                0x0003
 #define MODE_MASK                               0x0001
-#define KGDT_R0_CODE                            (0x8)
-#define KGDT_R0_DATA                            (0x10)
-#define KGDT_R3_CODE                            (0x18)
-#define KGDT_R3_DATA                            (0x20)
-#define KGDT_TSS                                (0x28)
-#define KGDT_R0_PCR                             (0x30)
-#define KGDT_R3_TEB                             (0x38)
-#define KGDT_LDT                                (0x48)
-#define KGDT_DF_TSS                             (0x50)
-#define KGDT_NMI_TSS                            (0x58)
+#define KGDT_NULL                               0x00
+#define KGDT_R0_CODE                            0x08
+#define KGDT_R0_DATA                            0x10
+#define KGDT_R3_CODE                            0x18
+#define KGDT_R3_DATA                            0x20
+#define KGDT_TSS                                0x28
+#define KGDT_R0_PCR                             0x30
+#define KGDT_R3_TEB                             0x38
+#define KGDT_VDM_TILE                           0x40
+#define KGDT_LDT                                0x48
+#define KGDT_DF_TSS                             0x50
+#define KGDT_NMI_TSS                            0x58
 #endif
 
 //
index e7563b8..cd1bdb1 100644 (file)
@@ -71,13 +71,15 @@ typedef enum
 //
 #define RPL_MASK                0x0003
 #define MODE_MASK               0x0001
-#define KGDT_R0_CODE            0x8
+#define KGDT_NULL               0x00
+#define KGDT_R0_CODE            0x08
 #define KGDT_R0_DATA            0x10
 #define KGDT_R3_CODE            0x18
 #define KGDT_R3_DATA            0x20
 #define KGDT_TSS                0x28
 #define KGDT_R0_PCR             0x30
 #define KGDT_R3_TEB             0x38
+#define KGDT_VDM_TILE           0x40
 #define KGDT_LDT                0x48
 #define KGDT_DF_TSS             0x50
 #define KGDT_NMI_TSS            0x58