Store processor identities in system info structure
All checks were successful
Builds / ExectOS (i686) (push) Successful in 1m13s
Builds / ExectOS (amd64) (push) Successful in 1m14s

This commit is contained in:
Rafal Kupiec 2024-06-07 20:19:56 +02:00
parent 86bc2042e5
commit f36b59c961
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
4 changed files with 2 additions and 10 deletions

View File

@ -315,6 +315,7 @@ typedef struct _ACPI_SYSTEM_INFO
ULONG LintiCount;
ULONG ImcrPresent;
ULONG ApicBase;
PPROCESSOR_IDENTITY CpuInfo;
ULONG IoApicPhysicalBase[APIC_MAX_IOAPICS];
PULONG IoApicVirtualBase[APIC_MAX_IOAPICS];
ULONG IoApicIntiBase[APIC_MAX_IOAPICS];
@ -365,9 +366,9 @@ typedef struct _PROCESSOR_IDENTITY
{
UCHAR Id;
UCHAR CpuId;
UCHAR CpuNumber;
BOOLEAN Bsp;
BOOLEAN Started;
PKPROCESSOR_BLOCK ProcessorBlock;
} PROCESSOR_IDENTITY, *PPROCESSOR_IDENTITY;
/* SMBIOS table header structure */

View File

@ -29,6 +29,3 @@ APIC_MODE HlpApicMode;
/* FrameBuffer information */
HAL_FRAMEBUFFER_DATA HlpFrameBufferData;
/* Processors identity table */
PROCESSOR_IDENTITY HlpProcessorsIdentity[MAXIMUM_PROCESSORS] = {{0}};

View File

@ -33,9 +33,6 @@ HlInitializeProcessor(VOID)
ProcessorBlock->StallScaleFactor = INITIAL_STALL_FACTOR;
ProcessorBlock->Idr = 0xFFFFFFFF;
/* Record processor block in the processors table */
HlpProcessorsIdentity[ProcessorBlock->CpuNumber].ProcessorBlock = ProcessorBlock;
/* Set processor affinity */
Affinity = (KAFFINITY) 1 << ProcessorBlock->CpuNumber;

View File

@ -33,9 +33,6 @@ EXTERN APIC_MODE HlpApicMode;
/* FrameBuffer information */
EXTERN HAL_FRAMEBUFFER_DATA HlpFrameBufferData;
/* Processors identity table */
EXTERN PROCESSOR_IDENTITY HlpProcessorsIdentity[MAXIMUM_PROCESSORS];
/* Pointer to boot loader provided DbgPrint() routine */
EXTERN VOID (*KeDbgPrint)(IN PWCHAR Format, IN ...);