Remove the library constructor as it is unnecessary because KR7 is a system global resource.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6133 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -39,29 +39,6 @@ GetPeiServicesTablePointer (
|
||||
return PeiServices;
|
||||
}
|
||||
|
||||
/**
|
||||
The constructor function caches the pointer to PEI services.
|
||||
|
||||
The constructor function caches the pointer to PEI services.
|
||||
It will always return EFI_SUCCESS.
|
||||
|
||||
@param FfsHeader Pointer to FFS header the loaded driver.
|
||||
@param PeiServices Pointer to the PEI services.
|
||||
|
||||
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PeiServicesTablePointerLibConstructor (
|
||||
IN EFI_PEI_FILE_HANDLE *FfsHeader,
|
||||
IN EFI_PEI_SERVICES **PeiServices
|
||||
)
|
||||
{
|
||||
AsmWriteKr7 ((UINT64)(UINTN)PeiServices);
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
The function set the pointer of PEI services in KR7 register
|
||||
according to PI specification.
|
||||
|
Reference in New Issue
Block a user