summaryrefslogtreecommitdiff
path: root/Nt32Pkg/CpuRuntimeDxe
diff options
context:
space:
mode:
authorAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-01 16:01:35 +0000
committerAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-01 16:01:35 +0000
commite0f06862e7745cc8261aa72d2d0158514deaa003 (patch)
treecc5ff62f6fc903a924b06f85f0eade12c3467176 /Nt32Pkg/CpuRuntimeDxe
parente7fe49961ab6d2d08e072775eb7c2d3be5d8a5ca (diff)
downloadedk2-platforms-e0f06862e7745cc8261aa72d2d0158514deaa003.tar.xz
Removed PCD entries for CPU properties as they should be defined in UNI file. Added some French translations to the MiscSubClass for things used on the front page.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3762 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/CpuRuntimeDxe')
-rw-r--r--Nt32Pkg/CpuRuntimeDxe/Cpu.c13
-rw-r--r--Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf4
-rw-r--r--Nt32Pkg/CpuRuntimeDxe/Strings.unibin2036 -> 2260 bytes
3 files changed, 3 insertions, 14 deletions
diff --git a/Nt32Pkg/CpuRuntimeDxe/Cpu.c b/Nt32Pkg/CpuRuntimeDxe/Cpu.c
index f0e22a4c4b..2dff9024c9 100644
--- a/Nt32Pkg/CpuRuntimeDxe/Cpu.c
+++ b/Nt32Pkg/CpuRuntimeDxe/Cpu.c
@@ -424,7 +424,6 @@ Returns:
EFI_HII_PROTOCOL *Hii;
EFI_HII_HANDLE StringHandle;
EFI_HII_PACKAGES *PackageList;
- STRING_REF Token;
//
@@ -464,15 +463,9 @@ Returns:
CopyMem (RecordBuffer.Raw, &mCpuDataRecordHeader, HeaderSize);
- //
- // Store processor version data record to data hub
- //
- Token = 0;
- Status = Hii->NewString (Hii, NULL, StringHandle, &Token, (CHAR16 *)PcdGetPtr (PcdWinNtCpuModel));
- ASSERT (!EFI_ERROR (Status));
RecordBuffer.DataRecord->DataRecordHeader.RecordType = ProcessorVersionRecordType;
- RecordBuffer.DataRecord->VariableRecord.ProcessorVersion = Token;
+ RecordBuffer.DataRecord->VariableRecord.ProcessorVersion = STRING_TOKEN (STR_PROCESSOR_VERSION);
TotalSize = HeaderSize + sizeof (EFI_PROCESSOR_VERSION_DATA);
Status = DataHub->LogData (
@@ -485,10 +478,10 @@ Returns:
);
//
- // Store CPU frequency data record to data hub
+ // Store CPU frequency data record to data hub - It's an emulator so make up a value
//
RecordBuffer.DataRecord->DataRecordHeader.RecordType = ProcessorCoreFrequencyRecordType;
- RecordBuffer.DataRecord->VariableRecord.ProcessorCoreFrequency.Value = (UINT16) StrDecimalToUintn (PcdGetPtr (PcdWinNtCpuSpeed));
+ RecordBuffer.DataRecord->VariableRecord.ProcessorCoreFrequency.Value = 1234;
RecordBuffer.DataRecord->VariableRecord.ProcessorCoreFrequency.Exponent = 6;
TotalSize = HeaderSize + sizeof (EFI_PROCESSOR_CORE_FREQUENCY_DATA);
diff --git a/Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf b/Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
index da623bc07b..e16c9af829 100644
--- a/Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
+++ b/Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
@@ -63,9 +63,5 @@
gEfiCpuIoProtocolGuid # PROTOCOL ALWAYS_PRODUCED
gEfiCpuArchProtocolGuid # PROTOCOL ALWAYS_PRODUCED
-[Pcd.common]
- gEfiNt32PkgTokenSpaceGuid.PcdWinNtCpuSpeed
- gEfiNt32PkgTokenSpaceGuid.PcdWinNtCpuModel
-
[Depex]
gEfiDataHubProtocolGuid AND gEfiHiiProtocolGuid
diff --git a/Nt32Pkg/CpuRuntimeDxe/Strings.uni b/Nt32Pkg/CpuRuntimeDxe/Strings.uni
index fd70fb9068..7a60266dbf 100644
--- a/Nt32Pkg/CpuRuntimeDxe/Strings.uni
+++ b/Nt32Pkg/CpuRuntimeDxe/Strings.uni
Binary files differ