summaryrefslogtreecommitdiffstats
path: root/EdkModulePkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-10 08:41:58 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-10 08:41:58 +0000
commit5b1b9d8bf4565b194ac16294c58993c62bcae315 (patch)
treeb2060f00621630ee13583f87a45668b3d3a9017b /EdkModulePkg
parent9c091616cd866a2e737506c138fa781873f5badf (diff)
downloadedk2-5b1b9d8bf4565b194ac16294c58993c62bcae315.tar.gz
edk2-5b1b9d8bf4565b194ac16294c58993c62bcae315.tar.bz2
edk2-5b1b9d8bf4565b194ac16294c58993c62bcae315.zip
1. BaseSmbusLib: Make SmbusReadDataByte() & SmbusWriteBlock() function well by re-arranging register settings.
2. BaseMemoryLibMmx for X64: Make CopyMem() be reentrant by saving Mm0 to r10. 3. DxeCorePerformanceLib: Fix some typo to save build error of that library instance. 4. Remove the orphanage definition of gEfiPerformanceProtocolGuid git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@859 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg')
-rw-r--r--EdkModulePkg/EdkModulePkg.spd5
-rw-r--r--EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c4
-rw-r--r--EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa3
3 files changed, 4 insertions, 8 deletions
diff --git a/EdkModulePkg/EdkModulePkg.spd b/EdkModulePkg/EdkModulePkg.spd
index 0f0556b80d..84234060d1 100644
--- a/EdkModulePkg/EdkModulePkg.spd
+++ b/EdkModulePkg/EdkModulePkg.spd
@@ -427,11 +427,6 @@
<GuidValue>125F2DE1-FB85-440C-A54C-4D99358A8D38</GuidValue>
<HelpText/>
</Entry>
- <Entry Name="Performance">
- <C_Name>gEfiPerformanceProtocolGuid</C_Name>
- <GuidValue>FFECFFFF-923C-14D2-9E3F-22A0C969563B</GuidValue>
- <HelpText/>
- </Entry>
<Entry Name="PxeDhcp4">
<C_Name>gEfiPxeDhcp4ProtocolGuid</C_Name>
<GuidValue>03C4E624-AC28-11D3-9A2D-0090293FC14D</GuidValue>
diff --git a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
index d2417234ab..5874902e2e 100644
--- a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
+++ b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
@@ -214,7 +214,6 @@ StartGauge (
UINTN GaugeDataSize;
UINTN OldGaugeDataSize;
GAUGE_DATA_HEADER *OldGaugeData;
- EFI_STATUS Status;
UINT32 Index;
Index = mGaugeData->NumberOfEntries;
@@ -230,7 +229,7 @@ StartGauge (
mGaugeData = AllocateZeroPool (GaugeDataSize);
if (mGaugeData == NULL) {
- return EFI_OUT_OF_MEMORY;
+ return EFI_OUT_OF_RESOURCES;
}
//
// Initialize new data arry and migrate old data one.
@@ -425,7 +424,6 @@ DxeCorePerformanceLibConstructor (
//
// Install the protocol interfaces.
//
- Handle = NULL;
Status = gBS->InstallProtocolInterface (
&mHandle,
&gPerformanceProtocolGuid,
diff --git a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa
index d217bdff5e..059c1f83fd 100644
--- a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa
+++ b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa
@@ -46,6 +46,9 @@
<LibraryClass Usage="ALWAYS_CONSUMED">
<Keyword>UefiBootServicesTableLib</Keyword>
</LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>MemoryAllocationLib</Keyword>
+ </LibraryClass>
</LibraryClassDefinitions>
<SourceFiles>
<Filename>DxeCorePerformanceLib.c</Filename>