Store processor identities in system info structure
This commit is contained in:
parent
86bc2042e5
commit
f36b59c961
@ -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 */
|
||||
|
@ -29,6 +29,3 @@ APIC_MODE HlpApicMode;
|
||||
|
||||
/* FrameBuffer information */
|
||||
HAL_FRAMEBUFFER_DATA HlpFrameBufferData;
|
||||
|
||||
/* Processors identity table */
|
||||
PROCESSOR_IDENTITY HlpProcessorsIdentity[MAXIMUM_PROCESSORS] = {{0}};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 ...);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user