From 484c77852ea2ba6ccc8e5c3b3ec4548588dd7f01 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 13 Nov 2008 08:30:16 +0000 Subject: [PATCH] Update minor comments for Smbus, PcdLib, PeiServicesLib library instance. And change UefiRuntimeLib instance type to UEFI_DRIVER according to MdeLib spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6495 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/DxePcdLib/DxePcdLib.c | 4 ++-- MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c | 2 +- MdePkg/Library/DxeSmbusLib/SmbusLib.c | 2 +- MdePkg/Library/PeiServicesLib/PeiServicesLib.c | 10 ++-------- MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf | 7 ++++--- 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.c b/MdePkg/Library/DxePcdLib/DxePcdLib.c index 26e05edaf5..987a2e9165 100644 --- a/MdePkg/Library/DxePcdLib/DxePcdLib.c +++ b/MdePkg/Library/DxePcdLib/DxePcdLib.c @@ -956,8 +956,8 @@ LibPcdGetNextTokenSpace ( @param[in] Buffer A pointer to the buffer to used to set the target variable. @return Return the pinter to the buffer been set. - @retval NULL If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be set - to MaximumDatumSize and NULL must be returned. + @retval NULL If SizeOfBuffer is set to MAX_ADDRESS or larger than MaximumDatumSize, + then SizeOfBuffer must be set to MaximumDatumSize and NULL must be returned. **/ VOID * EFIAPI diff --git a/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c b/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c index 8286f98b00..5517c4a4e1 100644 --- a/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c +++ b/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c @@ -1,5 +1,5 @@ /** @file -Implementation of SmBusLib class library for PEI phase. +Implementation of SmBusLib class library for DXE phase. Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials diff --git a/MdePkg/Library/DxeSmbusLib/SmbusLib.c b/MdePkg/Library/DxeSmbusLib/SmbusLib.c index e47d20d7c8..edfc0bcc5d 100644 --- a/MdePkg/Library/DxeSmbusLib/SmbusLib.c +++ b/MdePkg/Library/DxeSmbusLib/SmbusLib.c @@ -1,5 +1,5 @@ /** @file -Implementation of SmBusLib class library for PEI phase. +Implementation of SmBusLib class library for DXE phase. Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials diff --git a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c b/MdePkg/Library/PeiServicesLib/PeiServicesLib.c index d099d35928..f3ef83a8a8 100644 --- a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c +++ b/MdePkg/Library/PeiServicesLib/PeiServicesLib.c @@ -411,10 +411,7 @@ PeiServicesRegisterForShadow ( IN EFI_PEI_FILE_HANDLE FileHandle ) { - CONST EFI_PEI_SERVICES **PeiServices; - - PeiServices = GetPeiServicesTablePointer (); - return (*PeiServices)->RegisterForShadow (FileHandle); + return (*GetPeiServicesTablePointer())->RegisterForShadow (FileHandle); } /** @@ -442,10 +439,7 @@ PeiServicesFfsGetFileInfo ( OUT EFI_FV_FILE_INFO *FileInfo ) { - CONST EFI_PEI_SERVICES **PeiServices; - - PeiServices = GetPeiServicesTablePointer (); - return (*PeiServices)->FfsGetFileInfo (FileHandle, FileInfo); + return (*GetPeiServicesTablePointer())->FfsGetFileInfo (FileHandle, FileInfo); } diff --git a/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf b/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf index b49925c2cb..2fdc5e8179 100644 --- a/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf +++ b/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf @@ -3,6 +3,7 @@ # # Instance of UEFI Runtime Library, with hooked EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE and # EVT_SIGNAL_EXIT_BOOT_SERVICES event, to provide runtime services. +# This instance also supports SAL drivers for better performance. # # Copyright (c) 2006 - 2008, Intel Corporation. # @@ -20,16 +21,16 @@ INF_VERSION = 0x00010005 BASE_NAME = UefiRuntimeLib FILE_GUID = b1ee6c28-54aa-4d17-b705-3e28ccb27b2e - MODULE_TYPE = DXE_RUNTIME_DRIVER + MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = UefiRuntimeLib|DXE_RUNTIME_DRIVER DXE_SAL_DRIVER UEFI_APPLICATION DXE_SMM_DRIVER + LIBRARY_CLASS = UefiRuntimeLib|UEFI_DRIVER DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER UEFI_APPLICATION DXE_SMM_DRIVER EDK_RELEASE_VERSION = 0x00020000 CONSTRUCTOR = RuntimeDriverLibConstruct DESTRUCTOR = RuntimeDriverLibDeconstruct # -# VALID_ARCHITECTURES = IA32 X64 EBC +# VALID_ARCHITECTURES = IA32 X64 IPF EBC # -- 2.39.2