summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiRuntimeLib
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-15 14:31:45 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-15 14:31:45 +0000
commit51969ecb37e8d671c0237e936d79a51b7ca646ff (patch)
tree1d62d24d3a5cf080378d7dc0ec8d73ee6c017e19 /MdePkg/Library/UefiRuntimeLib
parentaeb90c4a15e90a85121e47b541baeaeff1e150a4 (diff)
downloadedk2-platforms-51969ecb37e8d671c0237e936d79a51b7ca646ff.tar.xz
Fix several minor coding style issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8092 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiRuntimeLib')
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeLib.c6
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h2
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeService.c26
3 files changed, 17 insertions, 17 deletions
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
index 592663a865..2a6ab39ba4 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
@@ -22,7 +22,7 @@ EFI_EVENT mEfiVirtualNotifyEvent;
EFI_EVENT mEfiExitBootServicesEvent;
BOOLEAN mEfiGoneVirtual = FALSE;
BOOLEAN mEfiAtRuntime = FALSE;
-EFI_RUNTIME_SERVICES *mRT;
+EFI_RUNTIME_SERVICES *gInternalRT;
/**
Set AtRuntime flag as TRUE after ExitBootServices.
@@ -63,7 +63,7 @@ RuntimeLibVirtualNotifyEvent (
//
// Update global for Runtime Services Table and IO
//
- EfiConvertPointer (0, (VOID **) &mRT);
+ EfiConvertPointer (0, (VOID **) &gInternalRT);
mEfiGoneVirtual = TRUE;
}
@@ -90,7 +90,7 @@ RuntimeDriverLibConstruct (
ASSERT (gRT != NULL);
ASSERT (gBS != NULL);
- mRT = gRT;
+ gInternalRT = gRT;
//
// Register SetVirtualAddressMap () notify function
//
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h b/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h
index 3d62dd81b8..040932c138 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h
@@ -21,6 +21,6 @@
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Guid/EventGroup.h>
-extern EFI_RUNTIME_SERVICES *mRT;
+extern EFI_RUNTIME_SERVICES *gInternalRT;
#endif
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeService.c b/MdePkg/Library/UefiRuntimeLib/RuntimeService.c
index 0502257768..43bb95645a 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeService.c
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeService.c
@@ -58,7 +58,7 @@ EfiResetSystem (
IN VOID *ResetData OPTIONAL
)
{
- mRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);
+ gInternalRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);
}
@@ -90,7 +90,7 @@ EfiGetTime (
OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL
)
{
- return mRT->GetTime (Time, Capabilities);
+ return gInternalRT->GetTime (Time, Capabilities);
}
@@ -122,7 +122,7 @@ EfiSetTime (
IN EFI_TIME *Time
)
{
- return mRT->SetTime (Time);
+ return gInternalRT->SetTime (Time);
}
@@ -155,7 +155,7 @@ EfiGetWakeupTime (
OUT EFI_TIME *Time
)
{
- return mRT->GetWakeupTime (Enabled, Pending, Time);
+ return gInternalRT->GetWakeupTime (Enabled, Pending, Time);
}
@@ -189,7 +189,7 @@ EfiSetWakeupTime (
IN EFI_TIME *Time OPTIONAL
)
{
- return mRT->SetWakeupTime (Enable, Time);
+ return gInternalRT->SetWakeupTime (Enable, Time);
}
@@ -233,7 +233,7 @@ EfiGetVariable (
OUT VOID *Data
)
{
- return mRT->GetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
+ return gInternalRT->GetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
}
@@ -275,7 +275,7 @@ EfiGetNextVariableName (
IN OUT EFI_GUID *VendorGuid
)
{
- return mRT->GetNextVariableName (VariableNameSize, VariableName, VendorGuid);
+ return gInternalRT->GetNextVariableName (VariableNameSize, VariableName, VendorGuid);
}
@@ -318,7 +318,7 @@ EfiSetVariable (
IN VOID *Data
)
{
- return mRT->SetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
+ return gInternalRT->SetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
}
@@ -344,7 +344,7 @@ EfiGetNextHighMonotonicCount (
OUT UINT32 *HighCount
)
{
- return mRT->GetNextHighMonotonicCount (HighCount);
+ return gInternalRT->GetNextHighMonotonicCount (HighCount);
}
@@ -499,7 +499,7 @@ EfiSetVirtualAddressMap (
IN CONST EFI_MEMORY_DESCRIPTOR *VirtualMap
)
{
- return mRT->SetVirtualAddressMap (
+ return gInternalRT->SetVirtualAddressMap (
MemoryMapSize,
DescriptorSize,
DescriptorVersion,
@@ -550,7 +550,7 @@ EfiUpdateCapsule (
IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL
)
{
- return mRT->UpdateCapsule (
+ return gInternalRT->UpdateCapsule (
CapsuleHeaderArray,
CapsuleCount,
ScatterGatherList
@@ -601,7 +601,7 @@ EfiQueryCapsuleCapabilities (
OUT EFI_RESET_TYPE *ResetType
)
{
- return mRT->QueryCapsuleCapabilities (
+ return gInternalRT->QueryCapsuleCapabilities (
CapsuleHeaderArray,
CapsuleCount,
MaximumCapsuleSize,
@@ -653,7 +653,7 @@ EfiQueryVariableInfo (
OUT UINT64 *MaximumVariableSize
)
{
- return mRT->QueryVariableInfo (
+ return gInternalRT->QueryVariableInfo (
Attributes,
MaximumVariableStorageSize,
RemainingVariableStorageSize,