Change EfiConvertPointer() and EfiSetVirtualAddressMap() to use gRT instead of mRT because these two functions must only be called in physical mode, so there is never any need for them to use mRT that is converted to a virtual address
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3581 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -87,8 +87,7 @@ RuntimeDriverLibConstruct (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
ASSERT (SystemTable != NULL);
|
||||
mRT = SystemTable->RuntimeServices;
|
||||
mRT = gRT;
|
||||
ASSERT (mRT != NULL);
|
||||
|
||||
//
|
||||
|
@@ -19,6 +19,7 @@
|
||||
#include <Library/UefiRuntimeLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||
|
||||
extern EFI_RUNTIME_SERVICES *mRT;
|
||||
|
||||
|
@@ -258,7 +258,7 @@ EfiConvertPointer (
|
||||
IN OUT VOID **Address
|
||||
)
|
||||
{
|
||||
return mRT->ConvertPointer (DebugDisposition, Address);
|
||||
return gRT->ConvertPointer (DebugDisposition, Address);
|
||||
}
|
||||
|
||||
|
||||
@@ -335,7 +335,7 @@ EfiSetVirtualAddressMap (
|
||||
IN CONST EFI_MEMORY_DESCRIPTOR *VirtualMap
|
||||
)
|
||||
{
|
||||
return mRT->SetVirtualAddressMap (
|
||||
return gRT->SetVirtualAddressMap (
|
||||
MemoryMapSize,
|
||||
DescriptorSize,
|
||||
DescriptorVersion,
|
||||
|
@@ -29,36 +29,21 @@
|
||||
DESTRUCTOR = RuntimeDriverLibDeconstruct
|
||||
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 EBC
|
||||
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
||||
#
|
||||
|
||||
|
||||
[Sources.common]
|
||||
RuntimeLibInternal.h
|
||||
|
||||
[Sources.Ia32]
|
||||
RuntimeService.c
|
||||
RuntimeLib.c
|
||||
|
||||
[Sources.X64]
|
||||
RuntimeService.c
|
||||
RuntimeLib.c
|
||||
|
||||
[Sources.EBC]
|
||||
RuntimeService.c
|
||||
RuntimeLib.c
|
||||
|
||||
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
|
||||
[Packages.IPF]
|
||||
MdePkg/MdePkg.dec
|
||||
|
||||
|
||||
[LibraryClasses]
|
||||
UefiBootServicesTableLib
|
||||
UefiRuntimeServicesTableLib
|
||||
DebugLib
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user