summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c')
-rw-r--r--MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
index ac4b3ebfbf..bd996ba8b5 100644
--- a/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
+++ b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
@@ -20,6 +20,17 @@
EFI_RUNTIME_SERVICES *gRT = NULL;
/**
+ The constructor function caches the pointer of Runtime Services Table.
+
+ The constructor function caches the pointer of Runtime Services Table.
+ It will ASSERT() if the pointer of Runtime Services Table is NULL.
+ It will always return EFI_SUCCESS.
+
+ @param ImageHandle The firmware allocated handle for the EFI image.
+ @param SystemTable A pointer to the EFI System Table.
+
+ @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
+
**/
EFI_STATUS
UefiRuntimeServicesTableLibConstructor (