[ASM][NDK][NTOS] Rename Self to SelfPcr in the KIPCR structure.
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 12 Dec 2017 11:50:58 +0000 (12:50 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 13 Dec 2017 12:49:00 +0000 (13:49 +0100)
ntoskrnl/kd64/kddata.c
ntoskrnl/kdbg/kdb_cli.c
ntoskrnl/ke/i386/kiinit.c
sdk/include/asm/ks386.template.h
sdk/include/ndk/i386/ketypes.h

index d7b02c9..681eb9b 100644 (file)
@@ -25,7 +25,7 @@ VOID NTAPI RtlpBreakWithStatusInstruction(VOID);
 
 #if defined(_M_IX86)
 
 
 #if defined(_M_IX86)
 
-#define KPCR_SELF_PCR_OFFSET           FIELD_OFFSET(KPCR, Self)
+#define KPCR_SELF_PCR_OFFSET           FIELD_OFFSET(KPCR, SelfPcr)
 #define KPCR_CURRENT_PRCB_OFFSET       FIELD_OFFSET(KPCR, Prcb)
 #define KPCR_CONTAINED_PRCB_OFFSET     FIELD_OFFSET(KPCR, PrcbData)
 #define KPCR_INITIAL_STACK_OFFSET      0
 #define KPCR_CURRENT_PRCB_OFFSET       FIELD_OFFSET(KPCR, Prcb)
 #define KPCR_CONTAINED_PRCB_OFFSET     FIELD_OFFSET(KPCR, PrcbData)
 #define KPCR_INITIAL_STACK_OFFSET      0
index db7dae7..a2829e4 100644 (file)
@@ -2112,7 +2112,7 @@ KdbpCmdPcr(
               "  Tib.FiberData/Version:     0x%08x\n"
               "  Tib.ArbitraryUserPointer:  0x%08x\n"
               "  Tib.Self:                  0x%08x\n"
               "  Tib.FiberData/Version:     0x%08x\n"
               "  Tib.ArbitraryUserPointer:  0x%08x\n"
               "  Tib.Self:                  0x%08x\n"
-              "  Self:                      0x%08x\n"
+              "  SelfPcr:                   0x%08x\n"
               "  PCRCB:                     0x%08x\n"
               "  Irql:                      0x%02x\n"
               "  IRR:                       0x%08x\n"
               "  PCRCB:                     0x%08x\n"
               "  Irql:                      0x%02x\n"
               "  IRR:                       0x%08x\n"
@@ -2133,7 +2133,7 @@ KdbpCmdPcr(
               "  InterruptMode:             0x%08x\n",
               Pcr->NtTib.ExceptionList, Pcr->NtTib.StackBase, Pcr->NtTib.StackLimit,
               Pcr->NtTib.SubSystemTib, Pcr->NtTib.FiberData, Pcr->NtTib.ArbitraryUserPointer,
               "  InterruptMode:             0x%08x\n",
               Pcr->NtTib.ExceptionList, Pcr->NtTib.StackBase, Pcr->NtTib.StackLimit,
               Pcr->NtTib.SubSystemTib, Pcr->NtTib.FiberData, Pcr->NtTib.ArbitraryUserPointer,
-              Pcr->NtTib.Self, Pcr->Self, Pcr->Prcb, Pcr->Irql, Pcr->IRR, Pcr->IrrActive,
+              Pcr->NtTib.Self, Pcr->SelfPcr, Pcr->Prcb, Pcr->Irql, Pcr->IRR, Pcr->IrrActive,
               Pcr->IDR, Pcr->KdVersionBlock, Pcr->IDT, Pcr->GDT, Pcr->TSS,
               Pcr->MajorVersion, Pcr->MinorVersion, Pcr->SetMember, Pcr->StallScaleFactor,
               Pcr->Number, Pcr->SecondLevelCacheAssociativity,
               Pcr->IDR, Pcr->KdVersionBlock, Pcr->IDT, Pcr->GDT, Pcr->TSS,
               Pcr->MajorVersion, Pcr->MinorVersion, Pcr->SetMember, Pcr->StallScaleFactor,
               Pcr->Number, Pcr->SecondLevelCacheAssociativity,
index 5f192cc..cba2c42 100644 (file)
@@ -345,7 +345,7 @@ KiInitializePcr(IN ULONG ProcessorNumber,
     Pcr->PrcbData.CurrentThread = IdleThread;
 
     /* Set pointers to ourselves */
     Pcr->PrcbData.CurrentThread = IdleThread;
 
     /* Set pointers to ourselves */
-    Pcr->Self = (PKPCR)Pcr;
+    Pcr->SelfPcr = (PKPCR)Pcr;
     Pcr->Prcb = &Pcr->PrcbData;
 
     /* Set the PCR Version */
     Pcr->Prcb = &Pcr->PrcbData;
 
     /* Set the PCR Version */
index dedeefa..e5f672c 100644 (file)
@@ -369,7 +369,7 @@ OFFSET(PcTssCopy, KIPCR, TssCopy),
 OFFSET(PcContextSwitches, KIPCR, ContextSwitches),
 OFFSET(PcSetMemberCopy, KIPCR, SetMemberCopy),
 OFFSET(PcTeb, KIPCR, NtTib.Self),
 OFFSET(PcContextSwitches, KIPCR, ContextSwitches),
 OFFSET(PcSetMemberCopy, KIPCR, SetMemberCopy),
 OFFSET(PcTeb, KIPCR, NtTib.Self),
-OFFSET(PcSelfPcr, KIPCR, Self),
+OFFSET(PcSelfPcr, KIPCR, SelfPcr),
 OFFSET(PcPrcb, KIPCR, Prcb),
 OFFSET(PcIrql, KIPCR, Irql),
 OFFSET(PcIRR, KIPCR, IRR),
 OFFSET(PcPrcb, KIPCR, Prcb),
 OFFSET(PcIrql, KIPCR, Irql),
 OFFSET(PcIRR, KIPCR, IRR),
@@ -582,7 +582,7 @@ OFFSET(KPCR_EXCEPTION_LIST, KPCR, NtTib.ExceptionList),
 OFFSET(KPCR_PERF_GLOBAL_GROUP_MASK, KIPCR, PerfGlobalGroupMask),
 OFFSET(KPCR_CONTEXT_SWITCHES, KPCR, ContextSwitches),
 OFFSET(KPCR_TEB, KIPCR, Used_Self),
 OFFSET(KPCR_PERF_GLOBAL_GROUP_MASK, KIPCR, PerfGlobalGroupMask),
 OFFSET(KPCR_CONTEXT_SWITCHES, KPCR, ContextSwitches),
 OFFSET(KPCR_TEB, KIPCR, Used_Self),
-OFFSET(KPCR_SELF, KIPCR, Self),
+OFFSET(KPCR_SELF, KIPCR, SelfPcr),
 OFFSET(KPCR_PRCB, KPCR, Prcb),
 OFFSET(KPCR_IDT, KIPCR, IDT),
 OFFSET(KPCR_GDT, KIPCR, GDT),
 OFFSET(KPCR_PRCB, KPCR, Prcb),
 OFFSET(KPCR_IDT, KIPCR, IDT),
 OFFSET(KPCR_GDT, KIPCR, GDT),
index cd005d7..e7563b8 100644 (file)
@@ -746,7 +746,7 @@ typedef struct _KIPCR
             PVOID Used_Self;
         };
     };
             PVOID Used_Self;
         };
     };
-    struct _KPCR *Self;
+    struct _KPCR *SelfPcr;
     struct _KPRCB *Prcb;
     KIRQL Irql;
     ULONG IRR;
     struct _KPRCB *Prcb;
     KIRQL Irql;
     ULONG IRR;