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
|
@ -1,14 +1,14 @@
|
||||||
/** @file
|
/** @file
|
||||||
Library that provides a global pointer to the DXE Services Table
|
Library that provides a global pointer to the DXE Services Table
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name: DxeServicesTableLib.h
|
Module Name: DxeServicesTableLib.h
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
#define __DXE_SERVICES_TABLE_LIB_H__
|
#define __DXE_SERVICES_TABLE_LIB_H__
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
// Cached copy of the System Configuration Table
|
||||||
//
|
//
|
||||||
extern EFI_DXE_SERVICES *gDS;
|
extern EFI_DXE_SERVICES *gDS;
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
/** @file
|
/** @file
|
||||||
Library that provides a global pointer to the UEFI Boot Services Tables
|
Library that provides a global pointer to the UEFI Boot Services Tables
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name: UefiBootServicesTableLib.h
|
Module Name: UefiBootServicesTableLib.h
|
||||||
|
|
||||||
|
@ -18,10 +18,18 @@
|
||||||
#define __UEFI_BOOT_SERVICES_TABLE_LIB_H__
|
#define __UEFI_BOOT_SERVICES_TABLE_LIB_H__
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
// Cache the Image Handle
|
||||||
//
|
//
|
||||||
extern EFI_HANDLE gImageHandle;
|
extern EFI_HANDLE gImageHandle;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Cache pointer to the EFI System Table
|
||||||
|
//
|
||||||
extern EFI_SYSTEM_TABLE *gST;
|
extern EFI_SYSTEM_TABLE *gST;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Cache pointer to the EFI Boot Services Table
|
||||||
|
//
|
||||||
extern EFI_BOOT_SERVICES *gBS;
|
extern EFI_BOOT_SERVICES *gBS;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
/** @file
|
/** @file
|
||||||
Library that provides a global pointer to the UEFI Runtime Services Tables
|
Library that provides a global pointer to the UEFI Runtime Services Tables
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name: UefiRuntimeServicesTableLib.h
|
Module Name: UefiRuntimeServicesTableLib.h
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
#define __UEFI_RUNTIME_SERVICES_TABLE_LIB_H__
|
#define __UEFI_RUNTIME_SERVICES_TABLE_LIB_H__
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
// Cached copy of the EFI Runtime Services Table
|
||||||
//
|
//
|
||||||
extern EFI_RUNTIME_SERVICES *gRT;
|
extern EFI_RUNTIME_SERVICES *gRT;
|
||||||
|
|
||||||
|
|
|
@ -2,33 +2,35 @@
|
||||||
DXE Library.
|
DXE Library.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name: DxeServicesTableLib.c
|
Module Name: DxeServicesTableLib.c
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Cached copy of the System Configuration Table
|
||||||
|
//
|
||||||
EFI_DXE_SERVICES *gDS = NULL;
|
EFI_DXE_SERVICES *gDS = NULL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The constructor function caches the pointer of System Configuration Table.
|
The constructor function caches the pointer of System Configuration Table.
|
||||||
|
|
||||||
The constructor function caches the pointer of System Configuration Table.
|
The constructor function caches the pointer of System Configuration Table.
|
||||||
It will ASSERT() if that operation fails.
|
It will ASSERT() if that operation fails.
|
||||||
It will ASSERT() if the pointer of System Configuration Table is NULL.
|
It will ASSERT() if the pointer of System Configuration Table is NULL.
|
||||||
It will always return EFI_SUCCESS.
|
It will always return EFI_SUCCESS.
|
||||||
|
|
||||||
@param ImageHandle The firmware allocated handle for the EFI image.
|
@param ImageHandle The firmware allocated handle for the EFI image.
|
||||||
@param SystemTable A pointer to the EFI System Table.
|
@param SystemTable A pointer to the EFI System Table.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
|
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -40,6 +42,9 @@ DxeServicesTableLibConstructor (
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Cached copy of the System Configuration Table
|
||||||
|
//
|
||||||
Status = EfiGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **) &gDS);
|
Status = EfiGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **) &gDS);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
ASSERT (gDS != NULL);
|
ASSERT (gDS != NULL);
|
||||||
|
|
|
@ -2,33 +2,30 @@
|
||||||
UEFI Runtime Services Table Library.
|
UEFI Runtime Services Table Library.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name: UefiRuntimeServicesTableLib.c
|
Module Name: UefiRuntimeServicesTableLib.c
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
//
|
|
||||||
// Cached copy of the EFI Runtime Services Table
|
|
||||||
//
|
|
||||||
EFI_RUNTIME_SERVICES *gRT = NULL;
|
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.
|
||||||
|
|
||||||
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 ASSERT() if the pointer of Runtime Services Table is NULL.
|
||||||
It will always return EFI_SUCCESS.
|
It will always return EFI_SUCCESS.
|
||||||
|
|
||||||
@param ImageHandle The firmware allocated handle for the EFI image.
|
@param ImageHandle The firmware allocated handle for the EFI image.
|
||||||
@param SystemTable A pointer to the EFI System Table.
|
@param SystemTable A pointer to the EFI System Table.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
|
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
Loading…
Reference in New Issue