diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-30 14:09:38 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-30 14:09:38 +0000 |
commit | 60c93673b3189b7a48acdb5c300f4ee3546ffb85 (patch) | |
tree | c335e23e592face4b3d6e5dcafffb8d51d64d246 /MdePkg/Library/UefiRuntimeLib/RuntimeLib.c | |
parent | ed300ce2a68ba42b7e140af9e7e71c706518c9f1 (diff) | |
download | edk2-platforms-60c93673b3189b7a48acdb5c300f4ee3546ffb85.tar.xz |
The driver and library in MdePkg, MdeModulePkg and Nt32Pkg that don't depend on PI spec should include Uefi.h not PiDxe.h.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5758 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiRuntimeLib/RuntimeLib.c')
-rw-r--r-- | MdePkg/Library/UefiRuntimeLib/RuntimeLib.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c index 4565955690..a30a95c54c 100644 --- a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c +++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c @@ -1,7 +1,7 @@ /** @file
- Library utility functions for Runtime driver.
+ UEFI Runtime Library implementation for non IPF processor types.
-Copyright (c) 2006 Intel Corporation. <BR>
+Copyright (c) 2006 - 2008 Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -70,6 +70,8 @@ RuntimeLibVirtualNotifyEvent ( /**
Intialize runtime Driver Lib if it has not yet been initialized.
+ It will ASSERT() if gRT is NULL or gBS is NULL.
+ It will ASSERT() if that operation fails.
@param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table.
@@ -85,13 +87,13 @@ RuntimeDriverLibConstruct ( {
EFI_STATUS Status;
+ ASSERT (gRT != NULL);
+ ASSERT (gBS != NULL);
+
mRT = gRT;
- ASSERT (mRT != NULL);
-
//
// Register SetVirtualAddressMap () notify function
//
- ASSERT (gBS != NULL);
Status = gBS->CreateEvent (
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
TPL_NOTIFY,
@@ -116,9 +118,10 @@ RuntimeDriverLibConstruct ( }
/**
- This routine will free some resources which have been allocated in
- EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,
- it must call this routine to free the allocated resource before the exiting.
+ If a runtime driver exits with an error, it must call this routine
+ to free the allocated resource before the exiting.
+ It will ASSERT() if gBS is NULL.
+ It will ASSERT() if that operation fails.
@param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table.
|