summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-08 20:44:44 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-08 20:44:44 +0000
commitad9e507a58a663b2035232360a7ade02399b80a8 (patch)
treefbdcb0f08675a5ecb69790790411f46a819f9c54 /MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
parent1b0d0cc5f108d65135c26259ff81c60dd2cc6d74 (diff)
downloadedk2-platforms-ad9e507a58a663b2035232360a7ade02399b80a8.tar.xz
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
Diffstat (limited to 'MdePkg/Library/UefiRuntimeLib/RuntimeLib.c')
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeLib.c3
1 files changed, 1 insertions, 2 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);
//