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
This commit is contained in:
lgao4 2008-11-13 08:30:16 +00:00
parent bab52709d8
commit 484c77852e
5 changed files with 10 additions and 15 deletions

View File

@ -956,8 +956,8 @@ LibPcdGetNextTokenSpace (
@param[in] Buffer A pointer to the buffer to used to set the target variable. @param[in] Buffer A pointer to the buffer to used to set the target variable.
@return Return the pinter to the buffer been set. @return Return the pinter to the buffer been set.
@retval NULL If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be set @retval NULL If SizeOfBuffer is set to MAX_ADDRESS or larger than MaximumDatumSize,
to MaximumDatumSize and NULL must be returned. then SizeOfBuffer must be set to MaximumDatumSize and NULL must be returned.
**/ **/
VOID * VOID *
EFIAPI EFIAPI

View File

@ -1,5 +1,5 @@
/** @file /** @file
Implementation of SmBusLib class library for PEI phase. Implementation of SmBusLib class library for DXE phase.
Copyright (c) 2006, Intel Corporation<BR> Copyright (c) 2006, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,5 +1,5 @@
/** @file /** @file
Implementation of SmBusLib class library for PEI phase. Implementation of SmBusLib class library for DXE phase.
Copyright (c) 2006, Intel Corporation<BR> Copyright (c) 2006, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -411,10 +411,7 @@ PeiServicesRegisterForShadow (
IN EFI_PEI_FILE_HANDLE FileHandle IN EFI_PEI_FILE_HANDLE FileHandle
) )
{ {
CONST EFI_PEI_SERVICES **PeiServices; return (*GetPeiServicesTablePointer())->RegisterForShadow (FileHandle);
PeiServices = GetPeiServicesTablePointer ();
return (*PeiServices)->RegisterForShadow (FileHandle);
} }
/** /**
@ -442,10 +439,7 @@ PeiServicesFfsGetFileInfo (
OUT EFI_FV_FILE_INFO *FileInfo OUT EFI_FV_FILE_INFO *FileInfo
) )
{ {
CONST EFI_PEI_SERVICES **PeiServices; return (*GetPeiServicesTablePointer())->FfsGetFileInfo (FileHandle, FileInfo);
PeiServices = GetPeiServicesTablePointer ();
return (*PeiServices)->FfsGetFileInfo (FileHandle, FileInfo);
} }

View File

@ -3,6 +3,7 @@
# #
# Instance of UEFI Runtime Library, with hooked EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE and # Instance of UEFI Runtime Library, with hooked EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE and
# EVT_SIGNAL_EXIT_BOOT_SERVICES event, to provide runtime services. # 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. # Copyright (c) 2006 - 2008, Intel Corporation.
# #
@ -20,16 +21,16 @@
INF_VERSION = 0x00010005 INF_VERSION = 0x00010005
BASE_NAME = UefiRuntimeLib BASE_NAME = UefiRuntimeLib
FILE_GUID = b1ee6c28-54aa-4d17-b705-3e28ccb27b2e FILE_GUID = b1ee6c28-54aa-4d17-b705-3e28ccb27b2e
MODULE_TYPE = DXE_RUNTIME_DRIVER MODULE_TYPE = UEFI_DRIVER
VERSION_STRING = 1.0 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 EDK_RELEASE_VERSION = 0x00020000
CONSTRUCTOR = RuntimeDriverLibConstruct CONSTRUCTOR = RuntimeDriverLibConstruct
DESTRUCTOR = RuntimeDriverLibDeconstruct DESTRUCTOR = RuntimeDriverLibDeconstruct
# #
# VALID_ARCHITECTURES = IA32 X64 EBC # VALID_ARCHITECTURES = IA32 X64 IPF EBC
# #