mirror of
https://github.com/reactos/reactos.git
synced 2024-10-14 21:25:14 +00:00
- CmpInitializeMachineDependentConfiguration: Write FeatureSet, MHZ and Update Signature to registry CentralProcessor node.
svn path=/trunk/; revision=26680
This commit is contained in:
parent
bd87454d22
commit
82bcb975e4
|
@ -197,6 +197,48 @@ CmpInitializeMachineDependentConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBloc
|
||||||
|
|
||||||
/* Close this new handle */
|
/* Close this new handle */
|
||||||
NtClose(FpuHandle);
|
NtClose(FpuHandle);
|
||||||
|
|
||||||
|
/* Check if we have features bits */
|
||||||
|
if (Prcb->FeatureBits)
|
||||||
|
{
|
||||||
|
/* Add them to the registry */
|
||||||
|
RtlInitUnicodeString(&ValueName, L"FeatureSet");
|
||||||
|
Status = NtSetValueKey(KeyHandle,
|
||||||
|
&ValueName,
|
||||||
|
0,
|
||||||
|
REG_DWORD,
|
||||||
|
&Prcb->FeatureBits,
|
||||||
|
sizeof(Prcb->FeatureBits));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check if we detected the CPU Speed */
|
||||||
|
if (Prcb->MHz)
|
||||||
|
{
|
||||||
|
/* Add it to the registry */
|
||||||
|
RtlInitUnicodeString(&ValueName, L"~MHz");
|
||||||
|
Status = NtSetValueKey(KeyHandle,
|
||||||
|
&ValueName,
|
||||||
|
0,
|
||||||
|
REG_DWORD,
|
||||||
|
&Prcb->MHz,
|
||||||
|
sizeof(Prcb->MHz));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check if we have an update signature */
|
||||||
|
if (Prcb->UpdateSignature.QuadPart)
|
||||||
|
{
|
||||||
|
/* Add it to the registry */
|
||||||
|
RtlInitUnicodeString(&ValueName, L"Update Signature");
|
||||||
|
Status = NtSetValueKey(KeyHandle,
|
||||||
|
&ValueName,
|
||||||
|
0,
|
||||||
|
REG_BINARY,
|
||||||
|
&Prcb->UpdateSignature,
|
||||||
|
sizeof(Prcb->UpdateSignature));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Close the processor handle */
|
||||||
|
NtClose(KeyHandle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue