Update KPROCESSOR_BLOCK structure
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 34s
Builds / ExectOS (i686) (push) Successful in 33s

This commit is contained in:
Rafal Kupiec 2024-05-07 16:20:40 +02:00
parent ac0b8ab36a
commit 276eb77862
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 22 additions and 6 deletions

View File

@ -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 */

View File

@ -469,17 +469,28 @@ typedef struct _KPROCESSOR_CONTROL_BLOCK
/* Processor Block structure definition */ /* Processor Block structure definition */
typedef struct _KPROCESSOR_BLOCK typedef struct _KPROCESSOR_BLOCK
{
union
{ {
THREAD_INFORMATION_BLOCK ThreadInformationBlock; THREAD_INFORMATION_BLOCK ThreadInformationBlock;
PKPROCESSOR_BLOCK Self; struct
PKPROCESSOR_CONTROL_BLOCK CurrentPrcb; {
KRUNLEVEL RunLevel;
PKIDTENTRY IdtBase;
PKGDTENTRY GdtBase; PKGDTENTRY GdtBase;
PKTSS TssBase; PKTSS TssBase;
PKPROCESSOR_BLOCK Self;
PKPROCESSOR_CONTROL_BLOCK CurrentPrcb;
};
};
PKIDTENTRY IdtBase;
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 */