From 5b1b9d8bf4565b194ac16294c58993c62bcae315 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 10 Jul 2006 08:41:58 +0000 Subject: 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 --- EdkModulePkg/EdkModulePkg.spd | 5 ----- EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c | 4 +--- EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa | 3 +++ 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'EdkModulePkg') 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 @@ 125F2DE1-FB85-440C-A54C-4D99358A8D38 - - gEfiPerformanceProtocolGuid - FFECFFFF-923C-14D2-9E3F-22A0C969563B - - gEfiPxeDhcp4ProtocolGuid 03C4E624-AC28-11D3-9A2D-0090293FC14D 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 @@ UefiBootServicesTableLib + + MemoryAllocationLib + DxeCorePerformanceLib.c -- cgit v1.2.3