https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7d5577c21ee1de8ea902a…
commit 7d5577c21ee1de8ea902aba89b0f85ee3ec30122
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Oct 13 19:21:34 2019 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Oct 13 19:57:54 2019 +0200
[SDK][NDK] Add two missing documented GDT selector names.
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--disp…
---
sdk/include/asm/ks386.template.h | 16 +++++++++-------
sdk/include/ndk/i386/asm.h | 22 ++++++++++++----------
sdk/include/ndk/i386/ketypes.h | 4 +++-
3 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/sdk/include/asm/ks386.template.h b/sdk/include/asm/ks386.template.h
index ac94afdc0fd..4dafa9dde9e 100644
--- a/sdk/include/asm/ks386.template.h
+++ b/sdk/include/asm/ks386.template.h
@@ -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),
diff --git a/sdk/include/ndk/i386/asm.h b/sdk/include/ndk/i386/asm.h
index 242cc74e1d9..428c39734a4 100644
--- a/sdk/include/ndk/i386/asm.h
+++ b/sdk/include/ndk/i386/asm.h
@@ -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
//
diff --git a/sdk/include/ndk/i386/ketypes.h b/sdk/include/ndk/i386/ketypes.h
index e7563b8d52b..cd1bdb1c5ba 100644
--- a/sdk/include/ndk/i386/ketypes.h
+++ b/sdk/include/ndk/i386/ketypes.h
@@ -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