From 878ddf1fc3540a715f63594ed22b6929e881afb4 Mon Sep 17 00:00:00 2001 From: bbahnsen Date: Fri, 21 Apr 2006 22:54:32 +0000 Subject: Initial import. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3 6f19259b-4bc3-4df7-8a09-765794883524 --- .../UefiRuntimeServicesTableLib.c | 36 ++++++++++++++++ .../UefiRuntimeServicesTableLib.mbd | 30 +++++++++++++ .../UefiRuntimeServicesTableLib.msa | 49 ++++++++++++++++++++++ .../Library/UefiRuntimeServicesTableLib/build.xml | 47 +++++++++++++++++++++ 4 files changed, 162 insertions(+) create mode 100644 MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c create mode 100644 MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.mbd create mode 100644 MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.msa create mode 100644 MdePkg/Library/UefiRuntimeServicesTableLib/build.xml (limited to 'MdePkg/Library/UefiRuntimeServicesTableLib') diff --git a/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c new file mode 100644 index 0000000000..ac4b3ebfbf --- /dev/null +++ b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c @@ -0,0 +1,36 @@ +/** @file + UEFI Runtime Services Table Library. + + Copyright (c) 2006, Intel Corporation
+ 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 + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + + Module Name: UefiRuntimeServicesTableLib.c + +**/ + +// +// Cached copy of the EFI Runtime Services Table +// +EFI_RUNTIME_SERVICES *gRT = NULL; + +/** +**/ +EFI_STATUS +UefiRuntimeServicesTableLibConstructor ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + // + // Cache pointer to the EFI Runtime Services Table + // + gRT = SystemTable->RuntimeServices; + ASSERT (gRT != NULL); + return EFI_SUCCESS; +} diff --git a/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.mbd b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.mbd new file mode 100644 index 0000000000..df9238a717 --- /dev/null +++ b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.mbd @@ -0,0 +1,30 @@ + + + + + UefiRuntimeServicesTableLib + baa1baa3-0a8d-402c-8042-985115fae953 + 0 + Library to abstract Framework extensions that conflict with UEFI 2.0 Specification + Copyright (c) 2004-2006, Intel Corporation + + 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 + http://opensource.org/licenses/bsd-license.php + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + + 2006-03-17 15:49 + 2006-03-19 15:17 + + diff --git a/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.msa b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.msa new file mode 100644 index 0000000000..e78c9cb9d0 --- /dev/null +++ b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.msa @@ -0,0 +1,49 @@ + + + + + UefiRuntimeServicesTableLib + DXE_DRIVER + LIBRARY + baa1baa3-0a8d-402c-8042-985115fae953 + 0 + UEFI Runtime Services Table Library + Library to abstract Framework extensions that conflict with UEFI 2.0 Specification + Copyright (c) 2004-2006, Intel Corporation + + 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 + http://opensource.org/licenses/bsd-license.php + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + + 0 + 2006-03-17 15:49 + 2006-03-19 15:17 + + + UefiRuntimeServicesTableLib + DebugLib + + + UefiRuntimeServicesTableLib.c + + + MdePkg + + + + UefiRuntimeServicesTableLibConstructor + + + diff --git a/MdePkg/Library/UefiRuntimeServicesTableLib/build.xml b/MdePkg/Library/UefiRuntimeServicesTableLib/build.xml new file mode 100644 index 0000000000..37c0cacd25 --- /dev/null +++ b/MdePkg/Library/UefiRuntimeServicesTableLib/build.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3