Update KPROCESSOR_BLOCK structure

This commit is contained in:
2024-05-07 16:20:40 +02:00
父節點 ac0b8ab36a
當前提交 276eb77862
共有 2 個文件被更改,包括 22 次插入6 次删除

查看文件

@@ -526,8 +526,13 @@ typedef struct _KPROCESSOR_BLOCK
PKIDTENTRY IdtBase; PKIDTENTRY IdtBase;
KRUNLEVEL RunLevel; KRUNLEVEL RunLevel;
KPROCESSOR_CONTROL_BLOCK Prcb; KPROCESSOR_CONTROL_BLOCK Prcb;
ULONG Irr;
ULONG IrrActive;
ULONG Idr;
ULONG ContextSwitches; ULONG ContextSwitches;
KAFFINITY SetMember;
ULONG StallScaleFactor; ULONG StallScaleFactor;
UCHAR CpuNumber;
} KPROCESSOR_BLOCK, *PKPROCESSOR_BLOCK; } KPROCESSOR_BLOCK, *PKPROCESSOR_BLOCK;
/* Thread Environment Block (TEB) structure definition */ /* Thread Environment Block (TEB) structure definition */

查看文件

@@ -470,16 +470,27 @@ typedef struct _KPROCESSOR_CONTROL_BLOCK
/* Processor Block structure definition */ /* Processor Block structure definition */
typedef struct _KPROCESSOR_BLOCK typedef struct _KPROCESSOR_BLOCK
{ {
THREAD_INFORMATION_BLOCK ThreadInformationBlock; union
PKPROCESSOR_BLOCK Self; {
PKPROCESSOR_CONTROL_BLOCK CurrentPrcb; THREAD_INFORMATION_BLOCK ThreadInformationBlock;
KRUNLEVEL RunLevel; struct
{
PKGDTENTRY GdtBase;
PKTSS TssBase;
PKPROCESSOR_BLOCK Self;
PKPROCESSOR_CONTROL_BLOCK CurrentPrcb;
};
};
PKIDTENTRY IdtBase; PKIDTENTRY IdtBase;
PKGDTENTRY GdtBase; KRUNLEVEL RunLevel;
PKTSS TssBase;
KPROCESSOR_CONTROL_BLOCK Prcb; KPROCESSOR_CONTROL_BLOCK Prcb;
ULONG Irr;
ULONG IrrActive;
ULONG Idr;
ULONG ContextSwitches; ULONG ContextSwitches;
KAFFINITY SetMember;
ULONG StallScaleFactor; ULONG StallScaleFactor;
UCHAR CpuNumber;
} KPROCESSOR_BLOCK, *PKPROCESSOR_BLOCK; } KPROCESSOR_BLOCK, *PKPROCESSOR_BLOCK;
/* Thread Environment Block (TEB) structure definition */ /* Thread Environment Block (TEB) structure definition */