added some comments in BaseLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1053 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bda7fbcc2f
commit
9f73d38da4
@ -18,7 +18,7 @@
|
||||
#define __DXE_SERVICES_TABLE_LIB_H__
|
||||
|
||||
//
|
||||
//
|
||||
// Cached copy of the System Configuration Table
|
||||
//
|
||||
extern EFI_DXE_SERVICES *gDS;
|
||||
|
||||
|
@ -18,10 +18,18 @@
|
||||
#define __UEFI_BOOT_SERVICES_TABLE_LIB_H__
|
||||
|
||||
//
|
||||
//
|
||||
// Cache the Image Handle
|
||||
//
|
||||
extern EFI_HANDLE gImageHandle;
|
||||
|
||||
//
|
||||
// Cache pointer to the EFI System Table
|
||||
//
|
||||
extern EFI_SYSTEM_TABLE *gST;
|
||||
|
||||
//
|
||||
// Cache pointer to the EFI Boot Services Table
|
||||
//
|
||||
extern EFI_BOOT_SERVICES *gBS;
|
||||
|
||||
#endif
|
||||
|
@ -18,7 +18,7 @@
|
||||
#define __UEFI_RUNTIME_SERVICES_TABLE_LIB_H__
|
||||
|
||||
//
|
||||
//
|
||||
// Cached copy of the EFI Runtime Services Table
|
||||
//
|
||||
extern EFI_RUNTIME_SERVICES *gRT;
|
||||
|
||||
|
@ -15,7 +15,9 @@
|
||||
**/
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Cached copy of the System Configuration Table
|
||||
//
|
||||
EFI_DXE_SERVICES *gDS = NULL;
|
||||
|
||||
/**
|
||||
@ -40,6 +42,9 @@ DxeServicesTableLibConstructor (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
//
|
||||
// Cached copy of the System Configuration Table
|
||||
//
|
||||
Status = EfiGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **) &gDS);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
ASSERT (gDS != NULL);
|
||||
|
@ -14,9 +14,6 @@
|
||||
|
||||
**/
|
||||
|
||||
//
|
||||
// Cached copy of the EFI Runtime Services Table
|
||||
//
|
||||
EFI_RUNTIME_SERVICES *gRT = NULL;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user