diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-10 08:41:58 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-10 08:41:58 +0000 |
commit | 5b1b9d8bf4565b194ac16294c58993c62bcae315 (patch) | |
tree | b2060f00621630ee13583f87a45668b3d3a9017b /EdkModulePkg/Library | |
parent | 9c091616cd866a2e737506c138fa781873f5badf (diff) | |
download | edk2-platforms-5b1b9d8bf4565b194ac16294c58993c62bcae315.tar.xz |
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/Library')
-rw-r--r-- | EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c | 4 | ||||
-rw-r--r-- | EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa | 3 |
2 files changed, 4 insertions, 3 deletions
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>
|