summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeLib.c3
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h1
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeService.c4
-rw-r--r--MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf19
4 files changed, 6 insertions, 21 deletions
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
index 2b0155e691..39be3cb0cf 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
@@ -87,8 +87,7 @@ RuntimeDriverLibConstruct (
{
EFI_STATUS Status;
- ASSERT (SystemTable != NULL);
- mRT = SystemTable->RuntimeServices;
+ mRT = gRT;
ASSERT (mRT != NULL);
//
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h b/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h
index e9b4c9d764..66157feed7 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h
@@ -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;
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeService.c b/MdePkg/Library/UefiRuntimeLib/RuntimeService.c
index 48db6bdcc8..34e4738102 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeService.c
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeService.c
@@ -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,
diff --git a/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf b/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
index de4dd1235a..ae464fa693 100644
--- a/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
+++ b/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
@@ -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